Method: WhatsappSdk::Resource::ParameterObject#initialize

Defined in:
lib/whatsapp_sdk/resource/parameter_object.rb

#initialize(type:, text: nil, currency: nil, date_time: nil, image: nil, document: nil, video: nil, location: nil) ⇒ ParameterObject

Returns a new instance of ParameterObject.



82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/whatsapp_sdk/resource/parameter_object.rb', line 82

def initialize(
  type:,
  text: nil,
  currency: nil,
  date_time: nil,
  image: nil,
  document: nil,
  video: nil,
  location: nil
)
  @type = type
  @text = text
  @currency = currency
  @date_time = date_time
  @image = image
  @document = document
  @video = video
  @location = location
  validate
end