Exception: WhatsappSdk::Resource::Component::InvalidField

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field, message) ⇒ InvalidField

Returns a new instance of InvalidField.



9
10
11
12
13
# File 'lib/whatsapp_sdk/resource/component.rb', line 9

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

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



7
8
9
# File 'lib/whatsapp_sdk/resource/component.rb', line 7

def field
  @field
end

#messageObject (readonly)

Returns the value of attribute message.



7
8
9
# File 'lib/whatsapp_sdk/resource/component.rb', line 7

def message
  @message
end