Module: Oceanarium::Config
Instance Method Summary collapse
- #api_key ⇒ Object
-
#api_key=(api_key) ⇒ Object
API key getter/setter.
- #api_url ⇒ Object
-
#api_url=(api_url) ⇒ Object
API URL getter/setter.
- #client_id ⇒ Object
-
#client_id=(client_id) ⇒ Object
Client key getter/setter.
Instance Method Details
#api_key ⇒ Object
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_url ⇒ Object
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_id ⇒ Object
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 |