Class: HookBridge::APIKey
- Defined in:
- lib/hookbridge/types.rb
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(data) ⇒ APIKey
constructor
A new instance of APIKey.
- #name ⇒ Object
Methods inherited from BaseModel
#method_missing, #respond_to_missing?, #to_h
Constructor Details
#initialize(data) ⇒ APIKey
Returns a new instance of APIKey.
128 129 130 |
# File 'lib/hookbridge/types.rb', line 128 def initialize(data) super(data, time_fields: %w[created_at last_used_at]) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HookBridge::BaseModel
Instance Method Details
#id ⇒ Object
132 133 134 |
# File 'lib/hookbridge/types.rb', line 132 def id key_id end |
#name ⇒ Object
136 137 138 |
# File 'lib/hookbridge/types.rb', line 136 def name label end |