Class: Author

Inherits:
String
  • Object
show all
Defined in:
app/models/author.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ipObject

Returns the value of attribute ip.



2
3
4
# File 'app/models/author.rb', line 2

def ip
  @ip
end