Class: PostProxy::IceBreaker

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/types.rb

Overview

Instagram DM ice breaker (FAQ prompt). May carry extra platform fields.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#initialize

Constructor Details

This class inherits a constructor from PostProxy::Model

Instance Attribute Details

#payloadObject

Returns the value of attribute payload.



245
246
247
# File 'lib/postproxy/types.rb', line 245

def payload
  @payload
end

#questionObject

Returns the value of attribute question.



245
246
247
# File 'lib/postproxy/types.rb', line 245

def question
  @question
end

Instance Method Details

#to_hObject



247
248
249
# File 'lib/postproxy/types.rb', line 247

def to_h
  { question: question, payload: payload }
end