Class: Flapjack::Gateways::JSONAPI::Data::MethodDescriptor
- Inherits:
-
Object
- Object
- Flapjack::Gateways::JSONAPI::Data::MethodDescriptor
- Defined in:
- lib/flapjack/gateways/jsonapi/data/method_descriptor.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#descriptions ⇒ Object
readonly
Returns the value of attribute descriptions.
-
#lock_klasses ⇒ Object
readonly
Returns the value of attribute lock_klasses.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ MethodDescriptor
constructor
A new instance of MethodDescriptor.
Constructor Details
#initialize(opts = {}) ⇒ MethodDescriptor
Returns a new instance of MethodDescriptor.
12 13 14 15 16 |
# File 'lib/flapjack/gateways/jsonapi/data/method_descriptor.rb', line 12 def initialize(opts = {}) %w{attributes lock_klasses descriptions}.each do |a| instance_variable_set("@#{a}", opts[a.to_sym]) end end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
10 11 12 |
# File 'lib/flapjack/gateways/jsonapi/data/method_descriptor.rb', line 10 def attributes @attributes end |
#descriptions ⇒ Object (readonly)
Returns the value of attribute descriptions.
10 11 12 |
# File 'lib/flapjack/gateways/jsonapi/data/method_descriptor.rb', line 10 def descriptions @descriptions end |
#lock_klasses ⇒ Object (readonly)
Returns the value of attribute lock_klasses.
10 11 12 |
# File 'lib/flapjack/gateways/jsonapi/data/method_descriptor.rb', line 10 def lock_klasses @lock_klasses end |