Class: CirroIOV2::Resources::GigResult

Inherits:
Base
  • Object
show all
Defined in:
lib/cirro_io_v2/resources/gig_result.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize, #resource_root

Constructor Details

This class inherits a constructor from CirroIOV2::Resources::Base

Instance Method Details

#create(params) ⇒ Object



9
10
11
12
# File 'lib/cirro_io_v2/resources/gig_result.rb', line 9

def create(params)
  response = client.request_client.request(:post, resource_root, body: params)
  Responses::GigResultResponse.new(response.body)
end

#list(params = nil) ⇒ Object



4
5
6
7
# File 'lib/cirro_io_v2/resources/gig_result.rb', line 4

def list(params = nil)
  response = client.request_client.request(:get, resource_root, params:)
  Responses::GigResultListResponse.new(response.body)
end