Sha256: d7a1750637d3daef513ab2e8ca0818b2f39e03770b15e2b75c8b5356afa536a7
Contents?: true
Size: 417 Bytes
Versions: 2
Compression:
Stored size: 417 Bytes
Contents
module Mousetrap class Plan < Resource attr_accessor \ :id, :code, :name protected def self.plural_resource_name 'plans' end def self.singular_resource_name 'plan' end def self.attributes_from_api(attributes) { :id => attributes['id'], :code => attributes['code'], :name => attributes['name'], } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hashrocket-mousetrap-0.2.0 | lib/mousetrap/plan.rb |
hashrocket-mousetrap-0.2.1 | lib/mousetrap/plan.rb |