Class: Flapjack::Gateways::JSONAPI::Data::MethodDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/flapjack/gateways/jsonapi/data/method_descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (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

#descriptionsObject (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_klassesObject (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