Class: Increase::Resources::InboundMailItems
- Inherits:
-
Object
- Object
- Increase::Resources::InboundMailItems
- Defined in:
- lib/increase/resources/inbound_mail_items.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ InboundMailItems
constructor
A new instance of InboundMailItems.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::InboundMailItem>
List Inbound Mail Items.
-
#retrieve(inbound_mail_item_id, opts = {}) ⇒ Increase::Models::InboundMailItem
Retrieve an Inbound Mail Item.
Constructor Details
#initialize(client:) ⇒ InboundMailItems
Returns a new instance of InboundMailItems.
6 7 8 |
# File 'lib/increase/resources/inbound_mail_items.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::InboundMailItem>
List Inbound Mail Items
36 37 38 39 40 41 42 43 44 |
# File 'lib/increase/resources/inbound_mail_items.rb', line 36 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/inbound_mail_items" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::InboundMailItem @client.request(req, opts) end |
#retrieve(inbound_mail_item_id, opts = {}) ⇒ Increase::Models::InboundMailItem
Retrieve an Inbound Mail Item
16 17 18 19 20 21 22 |
# File 'lib/increase/resources/inbound_mail_items.rb', line 16 def retrieve(inbound_mail_item_id, opts = {}) req = {} req[:method] = :get req[:path] = "/inbound_mail_items/#{inbound_mail_item_id}" req[:model] = Increase::Models::InboundMailItem @client.request(req, opts) end |