Class: GrowViral::Keystore::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/keystore/application.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/keystore/application.rb', line 4

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/keystore/application.rb', line 4

def name
  @name
end

#providerObject (readonly)

Returns the value of attribute provider.



4
5
6
# File 'lib/keystore/application.rb', line 4

def provider
  @provider
end

#secretObject (readonly)

Returns the value of attribute secret.



4
5
6
# File 'lib/keystore/application.rb', line 4

def secret
  @secret
end

#tokenObject (readonly)

Returns the value of attribute token.



4
5
6
# File 'lib/keystore/application.rb', line 4

def token
  @token
end