Class: GrowViral::Keystore::Account

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (readonly)

Returns the value of attribute application_id.



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

def application_id
  @application_id
end

#handleObject (readonly)

Returns the value of attribute handle.



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

def handle
  @handle
end

#secretObject (readonly)

Returns the value of attribute secret.



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

def secret
  @secret
end

#tokenObject (readonly)

Returns the value of attribute token.



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

def token
  @token
end

#uidObject (readonly)

Returns the value of attribute uid.



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

def uid
  @uid
end