Class: Fizzy::OperationInfo

Inherits:
Data
  • Object
show all
Defined in:
lib/fizzy/operation_info.rb

Overview

Information about a service operation for observability hooks.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_mutationObject (readonly)

Returns the value of attribute is_mutation

Returns:

  • (Object)

    the current value of is_mutation



5
6
7
# File 'lib/fizzy/operation_info.rb', line 5

def is_mutation
  @is_mutation
end

#operationObject (readonly)

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



5
6
7
# File 'lib/fizzy/operation_info.rb', line 5

def operation
  @operation
end

#resource_idObject (readonly)

Returns the value of attribute resource_id

Returns:

  • (Object)

    the current value of resource_id



5
6
7
# File 'lib/fizzy/operation_info.rb', line 5

def resource_id
  @resource_id
end

#resource_typeObject (readonly)

Returns the value of attribute resource_type

Returns:

  • (Object)

    the current value of resource_type



5
6
7
# File 'lib/fizzy/operation_info.rb', line 5

def resource_type
  @resource_type
end

#serviceObject (readonly)

Returns the value of attribute service

Returns:

  • (Object)

    the current value of service



5
6
7
# File 'lib/fizzy/operation_info.rb', line 5

def service
  @service
end