Module: Restio::Extension::Builder

Defined in:
lib/restio/extension/builder.rb

Instance Method Summary collapse

Instance Method Details

#new_from_rest(params = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/restio/extension/builder.rb', line 4

def new_from_rest params={}
  result = self.new
  result.rest.unwrap(params).each do |name,value|
    result.rest.set_value name, value
  end
  result
end