Class: HipcallSdk::ExtensionResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/hipcall/resources/extensions.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from HipcallSdk::Resource

Instance Method Details

#list(**params) ⇒ Object



3
4
5
6
# File 'lib/hipcall/resources/extensions.rb', line 3

def list(**params)
	response = get_request("extensions", params: params)
	Collection.from_response(response, key: "data", type: Extension)
end

#retrieve(extension_id:) ⇒ Object



8
9
10
# File 'lib/hipcall/resources/extensions.rb', line 8

def retrieve(extension_id:)
	Extension.new get_request("extensions/#{extension_id}").body.dig("data")
end