Module: RandomDataDespegar::InvoiceData

Included in:
Random
Defined in:
lib/random_data_despegar/invoice_data.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object (private)



117
118
119
# File 'lib/random_data_despegar/invoice_data.rb', line 117

def method_missing(m, *args, &block)
  puts "#{m} is not implemented here -- use a valid site (:site => 'AR')"
end

Instance Method Details

#invoice_data_for(site) ⇒ Object



4
5
6
7
# File 'lib/random_data_despegar/invoice_data.rb', line 4

def invoice_data_for(site)
  site ||= "AR"
  self.send("generate_invoice_data_#{site.downcase}")
end