Class: GoApiClient::Domain::Author

Inherits:
AttributeHelper show all
Defined in:
lib/go_api_client/domain/author.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#emailObject

Returns the value of attribute email.



4
5
6
# File 'lib/go_api_client/domain/author.rb', line 4

def email
  @email
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/go_api_client/domain/author.rb', line 4

def name
  @name
end

#uriObject

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

#hashObject



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