Class: GoApiClient::Domain::Author
- Inherits:
-
AttributeHelper
- Object
- AttributeHelper
- GoApiClient::Domain::Author
- Defined in:
- lib/go_api_client/domain/author.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #hash ⇒ Object
-
#initialize(attributes = {}) ⇒ Author
constructor
A new instance of Author.
Constructor Details
#initialize(attributes = {}) ⇒ Author
Returns a new instance of Author.
6 7 8 |
# File 'lib/go_api_client/domain/author.rb', line 6 def initialize(attributes={}) super(attributes) end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/go_api_client/domain/author.rb', line 4 def email @email end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/go_api_client/domain/author.rb', line 4 def name @name end |
#uri ⇒ Object
Returns the value of attribute uri.
4 5 6 |
# File 'lib/go_api_client/domain/author.rb', line 4 def uri @uri end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/go_api_client/domain/author.rb', line 10 def ==(other) other && self.class.equal?(other.class) && name == other.name && email == other.email && uri == other.uri end |
#hash ⇒ Object
17 18 19 |
# File 'lib/go_api_client/domain/author.rb', line 17 def hash self.class.hash ^ name.hash ^ email.hash ^ uri.hash end |