Sha256: efaa70af263e5c324ee21748c4e6d436855c1706f35c8191d920759fe5ad8f82
Contents?: true
Size: 435 Bytes
Versions: 3
Compression:
Stored size: 435 Bytes
Contents
module RestfulObjects class PropertyList extend Forwardable def initialize(domain_type) @properties = Hash.new @domain_type = domain_type end def add(id, return_type, options = {}) options[:member_order] ||= count + 1 @properties[id] = PropertyDescription.new(id, @domain_type, return_type, options) end def_delegators :@properties, :[], :each, :include?, :count, :empty? end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
restful_objects-0.0.5 | lib/restful_objects/property_list.rb |
restful_objects-0.0.4 | lib/restful_objects/property_list.rb |
restful_objects-0.0.3 | lib/restful_objects/property_list.rb |