Class: Retab::UsagePrimitiveTriggeredBy
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::UsagePrimitiveTriggeredBy
- Defined in:
- lib/retab/usage/usage_primitive_triggered_by.rb
Constant Summary collapse
- HASH_ATTRS =
{ access_token_id: :access_token_id, api_key_id: :api_key_id, auth_method: :auth_method, key_name: :key_name, key_prefix: :key_prefix, user_id: :user_id }.freeze
Instance Attribute Summary collapse
-
#access_token_id ⇒ Object
Returns the value of attribute access_token_id.
-
#api_key_id ⇒ Object
Returns the value of attribute api_key_id.
-
#auth_method ⇒ Object
Returns the value of attribute auth_method.
-
#key_name ⇒ Object
Returns the value of attribute key_name.
-
#key_prefix ⇒ Object
Returns the value of attribute key_prefix.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ UsagePrimitiveTriggeredBy
constructor
A new instance of UsagePrimitiveTriggeredBy.
Constructor Details
#initialize(json) ⇒ UsagePrimitiveTriggeredBy
Returns a new instance of UsagePrimitiveTriggeredBy.
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/retab/usage/usage_primitive_triggered_by.rb', line 26 def initialize(json) super() hash = self.class.normalize(json) @access_token_id = hash[:access_token_id] @api_key_id = hash[:api_key_id] @auth_method = hash[:auth_method] @key_name = hash[:key_name] @key_prefix = hash[:key_prefix] @user_id = hash[:user_id] end |
Instance Attribute Details
#access_token_id ⇒ Object
Returns the value of attribute access_token_id.
17 18 19 |
# File 'lib/retab/usage/usage_primitive_triggered_by.rb', line 17 def access_token_id @access_token_id end |
#api_key_id ⇒ Object
Returns the value of attribute api_key_id.
17 18 19 |
# File 'lib/retab/usage/usage_primitive_triggered_by.rb', line 17 def api_key_id @api_key_id end |
#auth_method ⇒ Object
Returns the value of attribute auth_method.
17 18 19 |
# File 'lib/retab/usage/usage_primitive_triggered_by.rb', line 17 def auth_method @auth_method end |
#key_name ⇒ Object
Returns the value of attribute key_name.
17 18 19 |
# File 'lib/retab/usage/usage_primitive_triggered_by.rb', line 17 def key_name @key_name end |
#key_prefix ⇒ Object
Returns the value of attribute key_prefix.
17 18 19 |
# File 'lib/retab/usage/usage_primitive_triggered_by.rb', line 17 def key_prefix @key_prefix end |
#user_id ⇒ Object
Returns the value of attribute user_id.
17 18 19 |
# File 'lib/retab/usage/usage_primitive_triggered_by.rb', line 17 def user_id @user_id end |