Class: BasisTheory::ApplicationResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/basis_theory/resources/application_resource.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 BasisTheory::Resource

Instance Method Details

#create(**attributes) ⇒ Object



10
11
12
# File 'lib/basis_theory/resources/application_resource.rb', line 10

def create(**attributes)
  Application.new(post_request('applications', body: attributes).body)
end

#list(**params) ⇒ Object



5
6
7
8
# File 'lib/basis_theory/resources/application_resource.rb', line 5

def list(**params)
  response = get_request('applications', params: params)
  Collection.from_response(response, type: Application)
end