Class: GrowViral::Keystore::Account
- Inherits:
-
Object
- Object
- GrowViral::Keystore::Account
- Defined in:
- lib/keystore/account.rb
Instance Attribute Summary collapse
-
#application_id ⇒ Object
readonly
Returns the value of attribute application_id.
-
#handle ⇒ Object
readonly
Returns the value of attribute handle.
-
#secret ⇒ Object
readonly
Returns the value of attribute secret.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
-
#initialize(data) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(data) ⇒ Account
Returns a new instance of Account.
5 6 7 8 9 10 11 |
# File 'lib/keystore/account.rb', line 5 def initialize(data) @application_id = data['application_id'] @uid = data['uid'] @handle = data['handle'] @token = data['token'] @secret = data['secret'] end |
Instance Attribute Details
#application_id ⇒ Object (readonly)
Returns the value of attribute application_id.
4 5 6 |
# File 'lib/keystore/account.rb', line 4 def application_id @application_id end |
#handle ⇒ Object (readonly)
Returns the value of attribute handle.
4 5 6 |
# File 'lib/keystore/account.rb', line 4 def handle @handle end |
#secret ⇒ Object (readonly)
Returns the value of attribute secret.
4 5 6 |
# File 'lib/keystore/account.rb', line 4 def secret @secret end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
4 5 6 |
# File 'lib/keystore/account.rb', line 4 def token @token end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
4 5 6 |
# File 'lib/keystore/account.rb', line 4 def uid @uid end |