Class: BPM::Credentials

Inherits:
Object
  • Object
show all
Defined in:
lib/bpm/credentials.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCredentials

Returns a new instance of Credentials.



5
6
7
# File 'lib/bpm/credentials.rb', line 5

def initialize
  parse
end

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



3
4
5
# File 'lib/bpm/credentials.rb', line 3

def api_key
  @api_key
end

#emailObject (readonly)

Returns the value of attribute email.



3
4
5
# File 'lib/bpm/credentials.rb', line 3

def email
  @email
end

Instance Method Details

#save(email, api_key) ⇒ Object



9
10
11
12
13
# File 'lib/bpm/credentials.rb', line 9

def save(email, api_key)
  @email   = email
  @api_key = api_key
  write
end