Class: HookBridge::APIKeyCreated

Inherits:
BaseModel show all
Defined in:
lib/hookbridge/types.rb

Instance Method Summary collapse

Methods inherited from BaseModel

#method_missing, #respond_to_missing?, #to_h

Constructor Details

#initialize(data) ⇒ APIKeyCreated

Returns a new instance of APIKeyCreated.



150
151
152
# File 'lib/hookbridge/types.rb', line 150

def initialize(data)
  super(data, time_fields: %w[created_at])
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HookBridge::BaseModel

Instance Method Details

#idObject



154
155
156
# File 'lib/hookbridge/types.rb', line 154

def id
  key_id
end

#nameObject



158
159
160
# File 'lib/hookbridge/types.rb', line 158

def name
  label
end