Class: Clickmeetings::PrivateLabel::Conference
- Defined in:
- lib/clickmeetings/models/privatelabel/conference.rb
Defined Under Namespace
Classes: NoAccountError
Instance Attribute Summary collapse
-
#access_role_hashes ⇒ Object
Returns the value of attribute access_role_hashes.
-
#access_type ⇒ Object
Returns the value of attribute access_type.
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#ccc ⇒ Object
Returns the value of attribute ccc.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#embed_room_url ⇒ Object
Returns the value of attribute embed_room_url.
-
#ends_at ⇒ Object
Returns the value of attribute ends_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#lobby_description ⇒ Object
Returns the value of attribute lobby_description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#name_url ⇒ Object
Returns the value of attribute name_url.
-
#password ⇒ Object
Returns the value of attribute password.
-
#permanent_room ⇒ Object
Returns the value of attribute permanent_room.
-
#phone_listener_pin ⇒ Object
Returns the value of attribute phone_listener_pin.
-
#phone_presenter_pin ⇒ Object
Returns the value of attribute phone_presenter_pin.
-
#recorder_list ⇒ Object
Returns the value of attribute recorder_list.
-
#room_pin ⇒ Object
Returns the value of attribute room_pin.
-
#room_type ⇒ Object
Returns the value of attribute room_type.
-
#room_url ⇒ Object
Returns the value of attribute room_url.
-
#starts_at ⇒ Object
Returns the value of attribute starts_at.
-
#status ⇒ Object
Returns the value of attribute status.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
- .account_id ⇒ Object
- .all ⇒ Object
- .by_account(account_id: nil) ⇒ Object
- .create(params = {}) ⇒ Object
- .find(id) ⇒ Object
Instance Method Summary collapse
- #destroy ⇒ Object
-
#initialize(params = {}) ⇒ Conference
constructor
A new instance of Conference.
- #remote_url(action = nil, params = {}) ⇒ Object
- #update(params = {}) ⇒ Object
Methods inherited from Model
client_options, #default_params
Methods inherited from Model
#action_path, #client, client_options, #default_headers, #default_params, #handle_response, #remote_path, set_resource_name
Constructor Details
#initialize(params = {}) ⇒ Conference
Returns a new instance of Conference.
49 50 51 52 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 49 def initialize(params = {}) super @account_id ||= self.class.account_id end |
Instance Attribute Details
#access_role_hashes ⇒ Object
Returns the value of attribute access_role_hashes.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def access_role_hashes @access_role_hashes end |
#access_type ⇒ Object
Returns the value of attribute access_type.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def access_type @access_type end |
#account_id ⇒ Object
Returns the value of attribute account_id.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def account_id @account_id end |
#ccc ⇒ Object
Returns the value of attribute ccc.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def ccc @ccc end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def description @description end |
#embed_room_url ⇒ Object
Returns the value of attribute embed_room_url.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def @embed_room_url end |
#ends_at ⇒ Object
Returns the value of attribute ends_at.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def ends_at @ends_at end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def id @id end |
#lobby_description ⇒ Object
Returns the value of attribute lobby_description.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def lobby_description @lobby_description end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def name @name end |
#name_url ⇒ Object
Returns the value of attribute name_url.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def name_url @name_url end |
#password ⇒ Object
Returns the value of attribute password.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def password @password end |
#permanent_room ⇒ Object
Returns the value of attribute permanent_room.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def permanent_room @permanent_room end |
#phone_listener_pin ⇒ Object
Returns the value of attribute phone_listener_pin.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def phone_listener_pin @phone_listener_pin end |
#phone_presenter_pin ⇒ Object
Returns the value of attribute phone_presenter_pin.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def phone_presenter_pin @phone_presenter_pin end |
#recorder_list ⇒ Object
Returns the value of attribute recorder_list.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def recorder_list @recorder_list end |
#room_pin ⇒ Object
Returns the value of attribute room_pin.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def room_pin @room_pin end |
#room_type ⇒ Object
Returns the value of attribute room_type.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def room_type @room_type end |
#room_url ⇒ Object
Returns the value of attribute room_url.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def room_url @room_url end |
#starts_at ⇒ Object
Returns the value of attribute starts_at.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def starts_at @starts_at end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4 def updated_at @updated_at end |
Class Method Details
.account_id ⇒ Object
44 45 46 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 44 def account_id Storage.cm_private_current_account end |
.all ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 30 def all fail Clickmeetings::PrivateLabel::Conference::NoAccountError if account_id.nil? response = Clickmeetings.with_client() do Clickmeetings.client.get remote_url(__method__), default_params end response = response["active_conferences"].to_a + response["inactive_conferences"].to_a handle_response response end |
.by_account(account_id: nil) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 14 def by_account(account_id: nil) Storage.cm_private_current_account = account_id if block_given? result = yield Storage.cm_private_current_account = nil result else self end end |
.create(params = {}) ⇒ Object
39 40 41 42 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 39 def create(params = {}) fail Clickmeetings::PrivateLabel::Conference::NoAccountError if account_id.nil? super end |
.find(id) ⇒ Object
25 26 27 28 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 25 def find(id) fail Clickmeetings::PrivateLabel::Conference::NoAccountError if account_id.nil? super end |
Instance Method Details
#destroy ⇒ Object
63 64 65 66 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 63 def destroy fail Clickmeetings::PrivateLabel::Conference::NoAccountError if @account_id.nil? super end |
#remote_url(action = nil, params = {}) ⇒ Object
54 55 56 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 54 def remote_url(action = nil, params = {}) "#{Account.remote_path(:find, id: @account_id)}/#{remote_path(action, params)}" end |
#update(params = {}) ⇒ Object
58 59 60 61 |
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 58 def update(params = {}) fail Clickmeetings::PrivateLabel::Conference::NoAccountError if @account_id.nil? super end |