Class: Rafflesia::FoundryModelEndpoint
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoundryModelEndpoint
- 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
-
#method ⇒ Object
Returns the value of attribute method.
-
#operation_id ⇒ Object
Returns the value of attribute operation_id.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoundryModelEndpoint
constructor
A new instance of FoundryModelEndpoint.
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
#method ⇒ Object
Returns the value of attribute method.
14 15 16 |
# File 'lib/rafflesia/foundry/foundry_model_endpoint.rb', line 14 def method @method end |
#operation_id ⇒ Object
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 |
#path ⇒ Object
Returns the value of attribute path.
14 15 16 |
# File 'lib/rafflesia/foundry/foundry_model_endpoint.rb', line 14 def path @path end |