Module: Oceanarium::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/oceanarium/config.rb

Instance Method Summary collapse

Instance Method Details

#api_keyObject



22
23
24
25
# File 'lib/oceanarium/config.rb', line 22

def api_key
  return @api_key if @api_key
  nil
end

#api_key=(api_key) ⇒ Object

API key getter/setter.



17
18
19
20
# File 'lib/oceanarium/config.rb', line 17

def api_key=(api_key)
  @api_key = api_key
  @api_key
end

#api_urlObject



11
12
13
14
# File 'lib/oceanarium/config.rb', line 11

def api_url
  return @api_url if @api_url
  "https://api.digitalocean.com/"
end

#api_url=(api_url) ⇒ Object

API URL getter/setter



6
7
8
9
# File 'lib/oceanarium/config.rb', line 6

def api_url=(api_url)
  @api_url = api_url
  @api_url
end

#client_idObject



33
34
35
36
# File 'lib/oceanarium/config.rb', line 33

def client_id
  return @client_id if @client_id
  nil
end

#client_id=(client_id) ⇒ Object

Client key getter/setter.



28
29
30
31
# File 'lib/oceanarium/config.rb', line 28

def client_id=(client_id)
  @client_id = client_id
  @client_id
end