Class: Nephophobia::Response::User

Inherits:
Object
  • Object
show all
Defined in:
lib/nephophobia/response/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ User

Returns a new instance of User.



8
9
10
11
12
13
14
# File 'lib/nephophobia/response/user.rb', line 8

def initialize attributes
  @attributes = attributes

  @accesskey = attributes['accesskey']
  @username  = attributes['username']
  @secretkey = attributes['secretkey']
end

Instance Attribute Details

#accesskeyObject (readonly)

Returns the value of attribute accesskey.



4
5
6
# File 'lib/nephophobia/response/user.rb', line 4

def accesskey
  @accesskey
end

#attributesObject

Returns the value of attribute attributes.



6
7
8
# File 'lib/nephophobia/response/user.rb', line 6

def attributes
  @attributes
end

#secretkeyObject (readonly)

Returns the value of attribute secretkey.



4
5
6
# File 'lib/nephophobia/response/user.rb', line 4

def secretkey
  @secretkey
end

#usernameObject (readonly)

Returns the value of attribute username.



4
5
6
# File 'lib/nephophobia/response/user.rb', line 4

def username
  @username
end