Class: Zoomba::Configuration
- Inherits:
-
Object
- Object
- Zoomba::Configuration
- Defined in:
- lib/zoomba/configuration.rb
Instance Attribute Summary collapse
-
#api_base_url ⇒ Object
Returns the value of attribute api_base_url.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
Instance Method Summary collapse
- #complete? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #to_h ⇒ Object
Constructor Details
#initialize ⇒ Configuration
5 6 7 |
# File 'lib/zoomba/configuration.rb', line 5 def initialize @api_base_url = 'https://api.zoom.us/v1' end |
Instance Attribute Details
#api_base_url ⇒ Object
Returns the value of attribute api_base_url.
3 4 5 |
# File 'lib/zoomba/configuration.rb', line 3 def api_base_url @api_base_url end |
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/zoomba/configuration.rb', line 3 def api_key @api_key end |
#api_secret ⇒ Object
Returns the value of attribute api_secret.
3 4 5 |
# File 'lib/zoomba/configuration.rb', line 3 def api_secret @api_secret end |
Instance Method Details
#complete? ⇒ Boolean
9 10 11 |
# File 'lib/zoomba/configuration.rb', line 9 def complete? !@api_key.nil? && !@api_secret.nil? end |
#to_h ⇒ Object
13 14 15 16 17 18 |
# File 'lib/zoomba/configuration.rb', line 13 def to_h { api_key: @api_key, api_secret: @api_secret } end |