Class: GetStream::Generated::Models::DeleteCallRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/delete_call_request.rb

Overview

DeleteCallRequest is the payload for deleting a call.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ DeleteCallRequest

Initialize with attributes



17
18
19
20
# File 'lib/getstream_ruby/generated/models/delete_call_request.rb', line 17

def initialize(attributes = {})
  super(attributes)
  @hard = attributes[:hard] || attributes['hard'] || nil
end

Instance Attribute Details

#hardBoolean

Returns if true the call will be hard deleted along with all related data.

Returns:

  • (Boolean)

    if true the call will be hard deleted along with all related data



14
15
16
# File 'lib/getstream_ruby/generated/models/delete_call_request.rb', line 14

def hard
  @hard
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



23
24
25
26
27
# File 'lib/getstream_ruby/generated/models/delete_call_request.rb', line 23

def self.json_field_mappings
  {
    hard: 'hard'
  }
end