Class: YandexOffers::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/yandex_offers/client.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



3
4
5
6
# File 'lib/yandex_offers/client.rb', line 3

def method_missing(name, *args, &block)
  klass_name = name.to_s.capitalize
  YandexOffers::Api::V1.const_get("#{klass_name}").new
end