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