Class: MetrifoxSDK::Types::UsageEventRequest
- Inherits:
-
Struct
- Object
- Struct
- MetrifoxSDK::Types::UsageEventRequest
- Defined in:
- lib/metrifox_sdk/types.rb
Instance Attribute Summary collapse
-
#credit_used ⇒ Object
Returns the value of attribute credit_used.
-
#customer_key ⇒ Object
Returns the value of attribute customer_key.
-
#event_id ⇒ Object
Returns the value of attribute event_id.
-
#event_name ⇒ Object
Returns the value of attribute event_name.
-
#feature_key ⇒ Object
Returns the value of attribute feature_key.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(customer_key:, event_name: nil, feature_key: nil, quantity: 1, credit_used: nil, event_id: nil, timestamp: nil, metadata: {}) ⇒ UsageEventRequest
constructor
A new instance of UsageEventRequest.
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_used ⇒ Object
Returns the value of attribute credit_used
3 4 5 |
# File 'lib/metrifox_sdk/types.rb', line 3 def credit_used @credit_used end |
#customer_key ⇒ Object
Returns the value of attribute customer_key
3 4 5 |
# File 'lib/metrifox_sdk/types.rb', line 3 def customer_key @customer_key end |
#event_id ⇒ Object
Returns the value of attribute event_id
3 4 5 |
# File 'lib/metrifox_sdk/types.rb', line 3 def event_id @event_id end |
#event_name ⇒ Object
Returns the value of attribute event_name
3 4 5 |
# File 'lib/metrifox_sdk/types.rb', line 3 def event_name @event_name end |
#feature_key ⇒ Object
Returns the value of attribute feature_key
3 4 5 |
# File 'lib/metrifox_sdk/types.rb', line 3 def feature_key @feature_key end |
#metadata ⇒ Object
Returns the value of attribute metadata
3 4 5 |
# File 'lib/metrifox_sdk/types.rb', line 3 def @metadata end |
#quantity ⇒ Object
Returns the value of attribute quantity
3 4 5 |
# File 'lib/metrifox_sdk/types.rb', line 3 def quantity @quantity end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
3 4 5 |
# File 'lib/metrifox_sdk/types.rb', line 3 def @timestamp end |