Class: DocFox::KycEntityTemplate::GetService
- Inherits:
-
BaseService
- Object
- BaseService
- DocFox::KycEntityTemplate::GetService
- Defined in:
- lib/doc_fox/kyc_entity_template/get_service.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#call ⇒ Object
Get a KYC application.
-
#initialize(id:) ⇒ GetService
constructor
A new instance of GetService.
Constructor Details
#initialize(id:) ⇒ GetService
Returns a new instance of GetService.
12 13 14 |
# File 'lib/doc_fox/kyc_entity_template/get_service.rb', line 12 def initialize(id:) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/doc_fox/kyc_entity_template/get_service.rb', line 4 def id @id end |
Instance Method Details
#call ⇒ Object
Get a KYC application.
Examples
service = DocFox::KycEntityTemplate::GetService.call(id: '')
service.success? # => true
service.errors # => #<ActiveModel::Errors []>
service.response # => #<Faraday::Response ...>
service.response.status # => 200
service.response.body # => {}
service.facade # => #<DocFox::KycEntityTemplate::Facade ...>
service.facade.id
service.id
GET /api/v2/kyc_entity_templates/:id
36 37 38 |
# File 'lib/doc_fox/kyc_entity_template/get_service.rb', line 36 def call connection.get("kyc_entity_templates/#{id}") end |