Class: GoApiClient::AttributeHelper

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

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AttributeHelper

Returns a new instance of AttributeHelper.



3
4
5
6
7
# File 'lib/go_api_client/attribute_helper.rb', line 3

def initialize(attributes={})
  attributes.each do |name, value|
    send("#{name}=", value) unless value.to_s.empty?
  end
end