Class: Nephophobia::Response::User
- Inherits:
-
Object
- Object
- Nephophobia::Response::User
- Defined in:
- lib/nephophobia/response/user.rb
Instance Attribute Summary collapse
-
#accesskey ⇒ Object
readonly
Returns the value of attribute accesskey.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#secretkey ⇒ Object
readonly
Returns the value of attribute secretkey.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ User
constructor
A new instance of User.
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
#accesskey ⇒ Object (readonly)
Returns the value of attribute accesskey.
4 5 6 |
# File 'lib/nephophobia/response/user.rb', line 4 def accesskey @accesskey end |
#attributes ⇒ Object
Returns the value of attribute attributes.
6 7 8 |
# File 'lib/nephophobia/response/user.rb', line 6 def attributes @attributes end |
#secretkey ⇒ Object (readonly)
Returns the value of attribute secretkey.
4 5 6 |
# File 'lib/nephophobia/response/user.rb', line 4 def secretkey @secretkey end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
4 5 6 |
# File 'lib/nephophobia/response/user.rb', line 4 def username @username end |