Class: Increase::Resources::IntrafiExclusions
- Inherits:
-
Object
- Object
- Increase::Resources::IntrafiExclusions
- Defined in:
- lib/increase/resources/intrafi_exclusions.rb
Instance Method Summary collapse
-
#archive(intrafi_exclusion_id, opts = {}) ⇒ Increase::Models::IntrafiExclusion
Archive an IntraFi Exclusion.
-
#create(params = {}, opts = {}) ⇒ Increase::Models::IntrafiExclusion
Create an IntraFi Exclusion.
-
#initialize(client:) ⇒ IntrafiExclusions
constructor
A new instance of IntrafiExclusions.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::IntrafiExclusion>
List IntraFi Exclusions.
-
#retrieve(intrafi_exclusion_id, opts = {}) ⇒ Increase::Models::IntrafiExclusion
Get an IntraFi Exclusion.
Constructor Details
#initialize(client:) ⇒ IntrafiExclusions
Returns a new instance of IntrafiExclusions.
6 7 8 |
# File 'lib/increase/resources/intrafi_exclusions.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#archive(intrafi_exclusion_id, opts = {}) ⇒ Increase::Models::IntrafiExclusion
Archive an IntraFi Exclusion
75 76 77 78 79 80 81 |
# File 'lib/increase/resources/intrafi_exclusions.rb', line 75 def archive(intrafi_exclusion_id, opts = {}) req = {} req[:method] = :post req[:path] = "/intrafi_exclusions/#{intrafi_exclusion_id}/archive" req[:model] = Increase::Models::IntrafiExclusion @client.request(req, opts) end |
#create(params = {}, opts = {}) ⇒ Increase::Models::IntrafiExclusion
Create an IntraFi Exclusion
19 20 21 22 23 24 25 26 |
# File 'lib/increase/resources/intrafi_exclusions.rb', line 19 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/intrafi_exclusions" req[:body] = params req[:model] = Increase::Models::IntrafiExclusion @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::IntrafiExclusion>
List IntraFi Exclusions.
57 58 59 60 61 62 63 64 65 |
# File 'lib/increase/resources/intrafi_exclusions.rb', line 57 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/intrafi_exclusions" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::IntrafiExclusion @client.request(req, opts) end |
#retrieve(intrafi_exclusion_id, opts = {}) ⇒ Increase::Models::IntrafiExclusion
Get an IntraFi Exclusion
34 35 36 37 38 39 40 |
# File 'lib/increase/resources/intrafi_exclusions.rb', line 34 def retrieve(intrafi_exclusion_id, opts = {}) req = {} req[:method] = :get req[:path] = "/intrafi_exclusions/#{intrafi_exclusion_id}" req[:model] = Increase::Models::IntrafiExclusion @client.request(req, opts) end |