Class: Author

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from String

#texesc!

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