Class: KOSapiClient::Entity::Author

Inherits:
Object
  • Object
show all
Defined in:
lib/kosapi_client/entity/author.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Author

Returns a new instance of Author.



7
8
9
# File 'lib/kosapi_client/entity/author.rb', line 7

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/kosapi_client/entity/author.rb', line 5

def name
  @name
end

Class Method Details

.parse(contents) ⇒ Object



11
12
13
# File 'lib/kosapi_client/entity/author.rb', line 11

def self.parse(contents)
  new(contents[:atom_name])
end