Exception: WhatsappSdk::Resource::MediaComponent::InvalidMedia

Inherits:
StandardError
  • Object
show all
Defined in:
lib/whatsapp_sdk/resource/media_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field, message) ⇒ InvalidMedia

Returns a new instance of InvalidMedia.



11
12
13
14
15
# File 'lib/whatsapp_sdk/resource/media_component.rb', line 11

def initialize(field, message)
  @field = field
  @message = message
  super(message)
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



9
10
11
# File 'lib/whatsapp_sdk/resource/media_component.rb', line 9

def field
  @field
end

#messageObject (readonly)

Returns the value of attribute message.



9
10
11
# File 'lib/whatsapp_sdk/resource/media_component.rb', line 9

def message
  @message
end