Class: BandwidthIris::TnOptions

Inherits:
Object
  • Object
show all
Extended by:
ClientWrapper
Includes:
ApiItem
Defined in:
lib/bandwidth-iris/tn_options.rb

Class Method Summary collapse

Methods included from ClientWrapper

wrap_client_arg

Methods included from ApiItem

#[], #[]=, #initialize, #to_data

Class Method Details

.create_tn_option_order(client, data) ⇒ Object



14
15
16
17
# File 'lib/bandwidth-iris/tn_options.rb', line 14

def self.create_tn_option_order(client, data)
    response = client.make_request(:post, "#{client.(TN_OPTIONS_PATH)}", {:tn_option_order => data})
    return response[0][:tn_option_order]
end

.get_tn_option_order(client, order_id) ⇒ Object



20
21
22
23
# File 'lib/bandwidth-iris/tn_options.rb', line 20

def self.get_tn_option_order(client, order_id)
    response = client.make_request(:get, "#{client.(TN_OPTIONS_PATH)}/#{order_id}")
    return response[0]
end

.get_tn_option_orders(client, query = nil) ⇒ Object



8
9
10
11
# File 'lib/bandwidth-iris/tn_options.rb', line 8

def self.get_tn_option_orders(client, query = nil)
    response = client.make_request(:get, "#{client.(TN_OPTIONS_PATH)}", query)
    return response[0]
end