Sha256: 0263e4393e44c11c99e13fc4b3c59bd328b9f59300934091d0540bd4d0577afa
Contents?: true
Size: 664 Bytes
Versions: 1
Compression:
Stored size: 664 Bytes
Contents
class Modifier attr_accessor :modifier_id # :internal => :external def self.attribute_map { :modifier_id => :modifier_id } end def initialize(attributes = {}) # Morph attribute keys into undescored rubyish style if attributes.to_s != "" if Modifier.attribute_map["modifier_id".to_sym] != nil name = "modifier_id".to_sym value = attributes["modifier_id"] send("#{name}=", value) if self.respond_to?(name) end end end def to_body body = {} Modifier.attribute_map.each_pair do |key,value| body[value] = self.send(key) unless self.send(key).nil? end body end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
subtledata-0.0.5 | models/modifier.rb |