Class: Clickmeetings::PrivateLabel::Conference

Inherits:
Model
  • Object
show all
Defined in:
lib/clickmeetings/models/privatelabel/conference.rb

Defined Under Namespace

Classes: NoAccountError

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.
end

Instance Attribute Details

#access_role_hashesObject

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_typeObject

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_idObject

Returns the value of attribute account_id.



4
5
6
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4

def 
  @account_id
end

#cccObject

Returns the value of attribute ccc.



4
5
6
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4

def ccc
  @ccc
end

#created_atObject

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

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4

def description
  @description
end

#embed_room_urlObject

Returns the value of attribute embed_room_url.



4
5
6
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4

def embed_room_url
  @embed_room_url
end

#ends_atObject

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

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4

def id
  @id
end

#lobby_descriptionObject

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4

def name
  @name
end

#name_urlObject

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

#passwordObject

Returns the value of attribute password.



4
5
6
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4

def password
  @password
end

#permanent_roomObject

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_pinObject

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_pinObject

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_listObject

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_pinObject

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_typeObject

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_urlObject

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_atObject

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

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 4

def status
  @status
end

#updated_atObject

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_idObject



44
45
46
# File 'lib/clickmeetings/models/privatelabel/conference.rb', line 44

def 
  Storage.
end

.allObject



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 .nil?
  response = Clickmeetings.with_client(client_options) 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 (account_id: nil)
  Storage. = 
  if block_given?
    result = yield
    Storage. = 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 .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 .nil?
  super
end

Instance Method Details

#destroyObject



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