Class: GetStream::Generated::Models::UpsertSetupSessionRequest

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

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 = {}) ⇒ UpsertSetupSessionRequest

Initialize with attributes



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

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

Instance Attribute Details

#current_stepString

Returns The current step of the setup wizard. One of: welcome, input, configure, live.

Returns:

  • (String)

    The current step of the setup wizard. One of: welcome, input, configure, live



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

def current_step
  @current_step
end

#setup_dataObject

Returns Per-step data keyed by step name (welcome, input, configure, live).

Returns:

  • (Object)

    Per-step data keyed by step name (welcome, input, configure, live)



20
21
22
# File 'lib/getstream_ruby/generated/models/upsert_setup_session_request.rb', line 20

def setup_data
  @setup_data
end

#statusString

Returns The status of the setup session. One of: in_progress, completed.

Returns:

  • (String)

    The status of the setup session. One of: in_progress, completed



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

def status
  @status
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



31
32
33
34
35
36
37
# File 'lib/getstream_ruby/generated/models/upsert_setup_session_request.rb', line 31

def self.json_field_mappings
  {
    current_step: 'current_step',
    status: 'status',
    setup_data: 'setup_data'
  }
end