Created
June 22, 2018 23:17
-
-
Save nydame/510d8660bc3048193dff5c38e8509059 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[6] pry(#<Post>):1> nesting | |
Nesting status: | |
-- | |
0. main (Pry top level) | |
1. #<Post> | |
[7] pry(#<Post>):1> self.to_s | |
=> "#<Post:0x00007fdad6ce57a8>" | |
[8] pry(#<Post>):1> self.title = "This is a Title Made with Pry" | |
=> "This is a Title Made with Pry" | |
[9] pry(#<Post>):1> self.title | |
=> "This is a Title Made with Pry" | |
[10] pry(#<Post>):1> self.body = "Oh, wow, this is much shorter than it used to be." | |
=> "Oh, wow, this is much shorter than it used to be." | |
[11] pry(#<Post>):1> self.changes | |
=> {"title"=>["My First Post", "This is a Title Made with Pry"], | |
"body"=> | |
["Aenean nec lacus vestibulum, blandit elit ut, dictum augue. Etiam consequat varius placerat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Proin sit amet nunc justo. Donec vulputate vitae metus sodales vulputate. Aliquam rhoncus turpis vitae enim pharetra, at ornare enim congue. Curabitur condimentum nunc vel sem rutrum, sed consequat ante tempor. Nunc non diam ipsum.", | |
"Oh, wow, this is much shorter than it used to be."]} | |
[12] pry(#<Post>):1> self.save! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assignment 5 - Object Relational Mapping: completed.