Class: ThrushItemBuilder

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

Instance Method Summary collapse

Constructor Details

#initializeThrushItemBuilder

Returns a new instance of ThrushItemBuilder.



31
32
33
# File 'lib/thrush.rb', line 31

def initialize
  @params = {}
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args) ⇒ Object



35
36
37
# File 'lib/thrush.rb', line 35

def method_missing(m, *args)
  @params[m.to_sym] = args[0]
end

Instance Method Details

#buildObject



39
40
41
# File 'lib/thrush.rb', line 39

def build
  @params
end