Sha256: 63d3bcbcda286ff180588d19fbaf1edca907110cb2672d338470b4f1a5a6b824
Contents?: true
Size: 418 Bytes
Versions: 5
Compression:
Stored size: 418 Bytes
Contents
module Mashery class Role < ApiObjectBase attr_reader :id, :created, :updated, :is_assignable, :is_predefined attr_accessor :name, :description def assignable? is_assignable == true end def predefined? is_predefined == true end def self.create(name, fields = {}) fields ||= {} our_fields = fields.merge('name' => name) super(our_fields) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mashery-0.1.1 | lib/mashery/role.rb |
mashery-0.1.0 | lib/mashery/role.rb |
mashery-0.0.11 | lib/mashery/role.rb |
mashery-0.0.10 | lib/mashery/role.rb |
mashery-0.0.9 | lib/mashery/role.rb |