Class: Mws::Apis::Feeds::Product::DelegatingBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/mws/apis/feeds/product.rb

Direct Known Subclasses

ProductBuilder

Instance Method Summary collapse

Constructor Details

#initialize(delegate) ⇒ DelegatingBuilder

Returns a new instance of DelegatingBuilder.



56
57
58
# File 'lib/mws/apis/feeds/product.rb', line 56

def initialize(delegate)
  @delegate = delegate
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



60
61
62
# File 'lib/mws/apis/feeds/product.rb', line 60

def method_missing(method, *args, &block)
  @delegate.send("#{method}=", *args, &block) if @delegate.respond_to? "#{method}="
end