Class: GetStream::Generated::Models::UnblockActionRequestPayload

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

Overview

Deprecated: Use restore instead, which now also reverses a block or shadow block. Configuration for unblock action.

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

Initialize with attributes



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

def initialize(attributes = {})
  super(attributes)
  @decision_reason = attributes.fetch(:decision_reason) { attributes.fetch('decision_reason', nil) }
end

Instance Attribute Details

#decision_reason ⇒ String

Returns Reason for the appeal decision.

Returns:

  • (String) —

    Reason for the appeal decision



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

def decision_reason
  @decision_reason
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



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

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