Class: MetrifoxSDK::Types::UsageEventRequest

Inherits:
Struct
  • Object
show all
Defined in:
lib/metrifox_sdk/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(customer_key:, event_name: nil, feature_key: nil, quantity: 1, credit_used: nil, event_id: nil, timestamp: nil, metadata: {}) ⇒ UsageEventRequest

Returns a new instance of UsageEventRequest.



7
8
9
# File 'lib/metrifox_sdk/types.rb', line 7

def initialize(customer_key:, event_name: nil, feature_key: nil, quantity: 1, credit_used: nil, event_id: nil, timestamp: nil, metadata: {})
  super
end

Instance Attribute Details

#credit_usedObject

Returns the value of attribute credit_used

Returns:

  • (Object)

    the current value of credit_used



3
4
5
# File 'lib/metrifox_sdk/types.rb', line 3

def credit_used
  @credit_used
end

#customer_keyObject

Returns the value of attribute customer_key

Returns:

  • (Object)

    the current value of customer_key



3
4
5
# File 'lib/metrifox_sdk/types.rb', line 3

def customer_key
  @customer_key
end

#event_idObject

Returns the value of attribute event_id

Returns:

  • (Object)

    the current value of event_id



3
4
5
# File 'lib/metrifox_sdk/types.rb', line 3

def event_id
  @event_id
end

#event_nameObject

Returns the value of attribute event_name

Returns:

  • (Object)

    the current value of event_name



3
4
5
# File 'lib/metrifox_sdk/types.rb', line 3

def event_name
  @event_name
end

#feature_keyObject

Returns the value of attribute feature_key

Returns:

  • (Object)

    the current value of feature_key



3
4
5
# File 'lib/metrifox_sdk/types.rb', line 3

def feature_key
  @feature_key
end

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



3
4
5
# File 'lib/metrifox_sdk/types.rb', line 3

def 
  @metadata
end

#quantityObject

Returns the value of attribute quantity

Returns:

  • (Object)

    the current value of quantity



3
4
5
# File 'lib/metrifox_sdk/types.rb', line 3

def quantity
  @quantity
end

#timestampObject

Returns the value of attribute timestamp

Returns:

  • (Object)

    the current value of timestamp



3
4
5
# File 'lib/metrifox_sdk/types.rb', line 3

def timestamp
  @timestamp
end