Class: Fizzy::OperationInfo
- Inherits:
-
Data
- Object
- Data
- Fizzy::OperationInfo
- Defined in:
- lib/fizzy/operation_info.rb
Overview
Information about a service operation for observability hooks.
Instance Attribute Summary collapse
-
#is_mutation ⇒ Object
readonly
Returns the value of attribute is_mutation.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#resource_id ⇒ Object
readonly
Returns the value of attribute resource_id.
-
#resource_type ⇒ Object
readonly
Returns the value of attribute resource_type.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(service:, operation:, resource_type: nil, is_mutation: false, resource_id: nil) ⇒ OperationInfo
constructor
A new instance of OperationInfo.
Constructor Details
#initialize(service:, operation:, resource_type: nil, is_mutation: false, resource_id: nil) ⇒ OperationInfo
Returns a new instance of OperationInfo.
6 7 8 |
# File 'lib/fizzy/operation_info.rb', line 6 def initialize(service:, operation:, resource_type: nil, is_mutation: false, resource_id: nil) super end |
Instance Attribute Details
#is_mutation ⇒ Object (readonly)
Returns the value of attribute is_mutation
5 6 7 |
# File 'lib/fizzy/operation_info.rb', line 5 def is_mutation @is_mutation end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation
5 6 7 |
# File 'lib/fizzy/operation_info.rb', line 5 def operation @operation end |
#resource_id ⇒ Object (readonly)
Returns the value of attribute resource_id
5 6 7 |
# File 'lib/fizzy/operation_info.rb', line 5 def resource_id @resource_id end |
#resource_type ⇒ Object (readonly)
Returns the value of attribute resource_type
5 6 7 |
# File 'lib/fizzy/operation_info.rb', line 5 def resource_type @resource_type end |
#service ⇒ Object (readonly)
Returns the value of attribute service
5 6 7 |
# File 'lib/fizzy/operation_info.rb', line 5 def service @service end |