Class: Myparcel::API::DeliveryOptions

Inherits:
Base
  • Object
show all
Defined in:
lib/myparcel/api/delivery_options.rb

Overview

Class for getting delivery options

Instance Attribute Summary

Attributes inherited from Base

#authentication, #path

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Myparcel::API::Base

Instance Method Details

#find(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/myparcel/api/delivery_options.rb', line 5

def find(options = {})
  request_options = {}
  request_options[:query] = options
  response = request :get, 'delivery_options', request_options
  response['data']['delivery']
end