Class: Onvo
- Inherits:
-
Object
- Object
- Onvo
- Defined in:
- lib/onvo.rb
Overview
The Onvo Ruby SDK
Instance Attribute Summary collapse
-
#accounts ⇒ Object
readonly
Returns the value of attribute accounts.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#automations ⇒ Object
readonly
Returns the value of attribute automations.
-
#dashboards ⇒ Object
readonly
Returns the value of attribute dashboards.
-
#datasources ⇒ Object
readonly
Returns the value of attribute datasources.
-
#embed_users ⇒ Object
readonly
Returns the value of attribute embed_users.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#teams ⇒ Object
readonly
Returns the value of attribute teams.
Instance Method Summary collapse
- #dashboard(dashboard_id) ⇒ Object
-
#initialize(endpoint = ENV['ONVO_API_ENDPOINT'], api_key = ENV['ONVO_API_KEY']) ⇒ Onvo
constructor
A new instance of Onvo.
Constructor Details
#initialize(endpoint = ENV['ONVO_API_ENDPOINT'], api_key = ENV['ONVO_API_KEY']) ⇒ Onvo
Returns a new instance of Onvo.
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/onvo.rb', line 17 def initialize(endpoint = ENV['ONVO_API_ENDPOINT'], api_key = ENV['ONVO_API_KEY']) @endpoint = endpoint @api_key = api_key params = [@endpoint, @api_key] @accounts = Accounts.new(*params) @teams = Teams.new(*params) @embed_users = EmbedUsers.new(*params) @datasources = Datasources.new(*params) @automations = Automations.new(*params) @dashboards = Dashboards.new(*params) end |
Instance Attribute Details
#accounts ⇒ Object (readonly)
Returns the value of attribute accounts.
14 15 16 |
# File 'lib/onvo.rb', line 14 def accounts @accounts end |
#api_key ⇒ Object
Returns the value of attribute api_key.
15 16 17 |
# File 'lib/onvo.rb', line 15 def api_key @api_key end |
#automations ⇒ Object (readonly)
Returns the value of attribute automations.
14 15 16 |
# File 'lib/onvo.rb', line 14 def automations @automations end |
#dashboards ⇒ Object (readonly)
Returns the value of attribute dashboards.
14 15 16 |
# File 'lib/onvo.rb', line 14 def dashboards @dashboards end |
#datasources ⇒ Object (readonly)
Returns the value of attribute datasources.
14 15 16 |
# File 'lib/onvo.rb', line 14 def datasources @datasources end |
#embed_users ⇒ Object (readonly)
Returns the value of attribute embed_users.
14 15 16 |
# File 'lib/onvo.rb', line 14 def @embed_users end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
15 16 17 |
# File 'lib/onvo.rb', line 15 def endpoint @endpoint end |
#teams ⇒ Object (readonly)
Returns the value of attribute teams.
14 15 16 |
# File 'lib/onvo.rb', line 14 def teams @teams end |