Class: FlyIO::Resources::Base
- Inherits:
-
Object
- Object
- FlyIO::Resources::Base
- Defined in:
- lib/fly_io/resources/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Base
constructor
A new instance of Base.
- #operation(operation_id, method: nil, path: nil, **arguments) ⇒ Object
Constructor Details
#initialize(client) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/fly_io/resources/base.rb', line 8 def initialize(client) @client = client freeze end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/fly_io/resources/base.rb', line 6 def client @client end |
Instance Method Details
#operation(operation_id, method: nil, path: nil, **arguments) ⇒ Object
13 14 15 |
# File 'lib/fly_io/resources/base.rb', line 13 def operation(operation_id, method: nil, path: nil, **arguments) invoke(OperationRegistry.fetch(operation_id, method: method, path: path), arguments) end |