Exception: WhatsappSdk::Api::Medias::FileNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/whatsapp_sdk/api/medias.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path:) ⇒ FileNotFoundError

Returns a new instance of FileNotFoundError.



15
16
17
18
19
20
# File 'lib/whatsapp_sdk/api/medias.rb', line 15

def initialize(file_path:)
  @file_path = file_path

  message = "Couldn't find file_path: #{file_path}"
  super(message)
end

Instance Attribute Details

#file_pathObject (readonly)

Returns the value of attribute file_path.



13
14
15
# File 'lib/whatsapp_sdk/api/medias.rb', line 13

def file_path
  @file_path
end