Class: Clickmeetings::Open::Token
- Includes:
- WithConference
- Defined in:
- lib/clickmeetings/models/open/token.rb
Defined Under Namespace
Classes: NoConferenceError
Instance Attribute Summary collapse
-
#first_use_date ⇒ Object
Returns the value of attribute first_use_date.
-
#sent_to_email ⇒ Object
Returns the value of attribute sent_to_email.
-
#token ⇒ Object
Returns the value of attribute token.
Attributes inherited from Model
Class Method Summary collapse
Instance Method Summary collapse
Methods included from WithConference
Methods inherited from Model
api_key, client_options, #default_headers, ping, with_account
Methods inherited from Model
#action_path, #client, client_options, #default_headers, #default_params, #destroy, find, #handle_response, #remote_path, #remote_url, set_resource_name, #update
Instance Attribute Details
#first_use_date ⇒ Object
Returns the value of attribute first_use_date.
10 11 12 |
# File 'lib/clickmeetings/models/open/token.rb', line 10 def first_use_date @first_use_date end |
#sent_to_email ⇒ Object
Returns the value of attribute sent_to_email.
10 11 12 |
# File 'lib/clickmeetings/models/open/token.rb', line 10 def sent_to_email @sent_to_email end |
#token ⇒ Object
Returns the value of attribute token.
10 11 12 |
# File 'lib/clickmeetings/models/open/token.rb', line 10 def token @token end |
Class Method Details
.all ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/clickmeetings/models/open/token.rb', line 13 def all fail NoConferenceError if conference_id.nil? response = Clickmeetings.with_client() do Clickmeetings.client.get remote_url(__method__), default_params, default_headers end handle_response response["access_tokens"] end |
.create(params = {}) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/clickmeetings/models/open/token.rb', line 21 def create(params = {}) fail NoConferenceError if conference_id.nil? response = Clickmeetings.with_client() do Clickmeetings.client.post remote_url(__method__), params.merge(default_params), default_headers end handle_response response["access_tokens"] end |