Class: HookBridge::APIKeysResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ APIKeysResponse

Returns a new instance of APIKeysResponse.



144
145
146
# File 'lib/hookbridge/types.rb', line 144

def initialize(data)
  @keys = (data["data"] || data || []).map { |entry| APIKey.new(entry) }
end

Instance Attribute Details

#keysObject (readonly)

Returns the value of attribute keys.



142
143
144
# File 'lib/hookbridge/types.rb', line 142

def keys
  @keys
end