Class: Author
Instance Attribute Summary collapse
-
#ip ⇒ Object
Returns the value of attribute ip.
Instance Method Summary collapse
-
#initialize(name, ip) ⇒ Author
constructor
A new instance of Author.
Methods inherited from String
Constructor Details
#initialize(name, ip) ⇒ Author
Returns a new instance of Author.
3 |
# File 'app/models/author.rb', line 3 def initialize(name, ip) @ip = ip; super(name) end |
Instance Attribute Details
#ip ⇒ Object
Returns the value of attribute ip.
2 3 4 |
# File 'app/models/author.rb', line 2 def ip @ip end |