Class: GetStream::Generated::Models::GetOrCreateCallRequest
- Defined in:
- lib/getstream_ruby/generated/models/get_or_create_call_request.rb
Instance Attribute Summary collapse
- #data ⇒ CallRequest
- #members_limit ⇒ Integer
-
#notify ⇒ Boolean
If provided it sends a notification event to the members for this call.
-
#ring ⇒ Boolean
If provided it sends a ring event to the members for this call.
- #video ⇒ Boolean
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ GetOrCreateCallRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ GetOrCreateCallRequest
Initialize with attributes
29 30 31 32 33 34 35 36 |
# File 'lib/getstream_ruby/generated/models/get_or_create_call_request.rb', line 29 def initialize(attributes = {}) super(attributes) @members_limit = attributes[:members_limit] || attributes['members_limit'] || nil @notify = attributes[:notify] || attributes['notify'] || nil @ring = attributes[:ring] || attributes['ring'] || nil @video = attributes[:video] || attributes['video'] || nil @data = attributes[:data] || attributes['data'] || nil end |
Instance Attribute Details
#data ⇒ CallRequest
26 27 28 |
# File 'lib/getstream_ruby/generated/models/get_or_create_call_request.rb', line 26 def data @data end |
#members_limit ⇒ Integer
14 15 16 |
# File 'lib/getstream_ruby/generated/models/get_or_create_call_request.rb', line 14 def members_limit @members_limit end |
#notify ⇒ Boolean
Returns if provided it sends a notification event to the members for this call.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/get_or_create_call_request.rb', line 17 def notify @notify end |
#ring ⇒ Boolean
Returns if provided it sends a ring event to the members for this call.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/get_or_create_call_request.rb', line 20 def ring @ring end |
#video ⇒ Boolean
23 24 25 |
# File 'lib/getstream_ruby/generated/models/get_or_create_call_request.rb', line 23 def video @video end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39 40 41 42 43 44 45 46 47 |
# File 'lib/getstream_ruby/generated/models/get_or_create_call_request.rb', line 39 def self.json_field_mappings { members_limit: 'members_limit', notify: 'notify', ring: 'ring', video: 'video', data: 'data' } end |