class GoApiClient::Domain::User

Attributes

email[RW]
name[RW]

Public Class Methods

new(name, email) click to toggle source
# File lib/go_api_client/domain/user.rb, line 6
def initialize(name, email)
  @name = name
  @email = email
end

Public Instance Methods

==(other) click to toggle source
# File lib/go_api_client/domain/user.rb, line 11
def ==(other)
  other && self.class.equal?(other.class) &&
      name == other.name &&
      email == other.email
end
hash() click to toggle source
# File lib/go_api_client/domain/user.rb, line 17
def hash
  self.class.hash ^ name.hash ^ email.hash
end
inspect() click to toggle source
# File lib/go_api_client/domain/user.rb, line 25
def inspect
  "User(#{to_s})"
end
to_s() click to toggle source
# File lib/go_api_client/domain/user.rb, line 21
def to_s
  "#{name} <#{email}>"
end