Class: Rafflesia::FoundryModelEndpoint

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/foundry/foundry_model_endpoint.rb

Constant Summary collapse

HASH_ATTRS =
{
  method: :method,
  operation_id: :operation_id,
  path: :path
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoundryModelEndpoint

Returns a new instance of FoundryModelEndpoint.



19
20
21
22
23
24
25
# File 'lib/rafflesia/foundry/foundry_model_endpoint.rb', line 19

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @method = hash[:method]
  @operation_id = hash[:operation_id]
  @path = hash[:path]
end

Instance Attribute Details

#methodObject

Returns the value of attribute method.



14
15
16
# File 'lib/rafflesia/foundry/foundry_model_endpoint.rb', line 14

def method
  @method
end

#operation_idObject

Returns the value of attribute operation_id.



14
15
16
# File 'lib/rafflesia/foundry/foundry_model_endpoint.rb', line 14

def operation_id
  @operation_id
end

#pathObject

Returns the value of attribute path.



14
15
16
# File 'lib/rafflesia/foundry/foundry_model_endpoint.rb', line 14

def path
  @path
end