Class: KOSapiClient::Entity::Author
- Inherits:
-
Object
- Object
- KOSapiClient::Entity::Author
- Defined in:
- lib/kosapi_client/entity/author.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name) ⇒ Author
constructor
A new instance of Author.
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
#name ⇒ Object (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 |