Sha256: 459835c95c2a65c6470179f2381ea4c58f623e639bf0b92c01e7bd7de585a99b
Contents?: true
Size: 493 Bytes
Versions: 1
Compression:
Stored size: 493 Bytes
Contents
module XeroGateway class TrackingCategory attr_accessor :name, :options def initialize(params = {}) @options = [] params.each do |k,v| self.instance_variable_set("@#{k}", v) ## create and initialize an instance variable for this key/value pair self.send("#{k}=", v) end end def ==(other) [:name, :options].each do |field| return false if send(field) != other.send(field) end return true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tlconnor-xero_gateway-1.0.2 | lib/xero_gateway/tracking_category.rb |