Class: Clickmeetings::Open::LoginHash
- Defined in:
- lib/clickmeetings/models/open/login_hash.rb
Defined Under Namespace
Classes: InvalidParamsError
Class Attribute Summary collapse
-
.conference_id ⇒ Object
readonly
Returns the value of attribute conference_id.
Instance Attribute Summary collapse
-
#autologin_hash ⇒ Object
Returns the value of attribute autologin_hash.
-
#conference_id ⇒ Object
Returns the value of attribute conference_id.
-
#email ⇒ Object
Returns the value of attribute email.
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#password ⇒ Object
Returns the value of attribute password.
-
#role ⇒ Object
Returns the value of attribute role.
-
#token ⇒ Object
Returns the value of attribute token.
Attributes inherited from Model
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ LoginHash
constructor
A new instance of LoginHash.
- #remote_url(action = nil, params = {}) ⇒ Object
Methods inherited from Model
api_key, client_options, #default_headers, ping, with_account
Methods inherited from Model
#action_path, all, #client, client_options, #default_headers, #default_params, #destroy, find, #handle_response, #remote_path, set_resource_name, #update
Constructor Details
#initialize(params = {}) ⇒ LoginHash
Returns a new instance of LoginHash.
39 40 41 42 |
# File 'lib/clickmeetings/models/open/login_hash.rb', line 39 def initialize(params = {}) super @conference_id ||= self.class.conference_id end |
Class Attribute Details
.conference_id ⇒ Object (readonly)
Returns the value of attribute conference_id.
11 12 13 |
# File 'lib/clickmeetings/models/open/login_hash.rb', line 11 def conference_id @conference_id end |
Instance Attribute Details
#autologin_hash ⇒ Object
Returns the value of attribute autologin_hash.
8 9 10 |
# File 'lib/clickmeetings/models/open/login_hash.rb', line 8 def autologin_hash @autologin_hash end |
#conference_id ⇒ Object
Returns the value of attribute conference_id.
8 9 10 |
# File 'lib/clickmeetings/models/open/login_hash.rb', line 8 def conference_id @conference_id end |
#email ⇒ Object
Returns the value of attribute email.
8 9 10 |
# File 'lib/clickmeetings/models/open/login_hash.rb', line 8 def email @email end |
#nickname ⇒ Object
Returns the value of attribute nickname.
8 9 10 |
# File 'lib/clickmeetings/models/open/login_hash.rb', line 8 def nickname @nickname end |
#password ⇒ Object
Returns the value of attribute password.
8 9 10 |
# File 'lib/clickmeetings/models/open/login_hash.rb', line 8 def password @password end |
#role ⇒ Object
Returns the value of attribute role.
8 9 10 |
# File 'lib/clickmeetings/models/open/login_hash.rb', line 8 def role @role end |
#token ⇒ Object
Returns the value of attribute token.
8 9 10 |
# File 'lib/clickmeetings/models/open/login_hash.rb', line 8 def token @token end |
Class Method Details
.create(params = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/clickmeetings/models/open/login_hash.rb', line 13 def create(params = {}) validate_params params params[:token] = params[:token].token if params[:token].is_a? Token @conference_id = params.delete(:conference_id) obj = super params.each do |key, value| obj.send("#{key}=", value) end obj end |
Instance Method Details
#remote_url(action = nil, params = {}) ⇒ Object
44 45 46 47 |
# File 'lib/clickmeetings/models/open/login_hash.rb', line 44 def remote_url(action = nil, params = {}) Conference.remote_path(:find, id: params[:conference_id] || conference_id) + '/' + remote_path(action, params) end |