Class: Gateway::Requests::Client

Inherits:
CommonRequest show all
Defined in:
lib/gateway/requests/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CommonRequest

#attributes

Constructor Details

#initialize(attributes) ⇒ Client

Returns a new instance of Client.



6
7
8
9
10
# File 'lib/gateway/requests/client.rb', line 6

def initialize(attributes)
  attributes.each do |name, value|
    send("#{name}=", value) if respond_to? "#{name}="
  end
end

Instance Attribute Details

#avatarObject

Returns the value of attribute avatar.



4
5
6
# File 'lib/gateway/requests/client.rb', line 4

def avatar
  @avatar
end

#keyObject

Returns the value of attribute key.



4
5
6
# File 'lib/gateway/requests/client.rb', line 4

def key
  @key
end

#nicknameObject

Returns the value of attribute nickname.



4
5
6
# File 'lib/gateway/requests/client.rb', line 4

def nickname
  @nickname
end