class BandwidthIris::PortOut
Public Instance Methods
Source
# File lib/bandwidth-iris/port_out.rb, line 18 def add_notes(note) r = @client.make_request(:post, "#{@client.concat_account_path(PORT_OUT_PATH)}/#{id}/notes", {:note => note}) note_id = Client.get_id_from_location_header(r[1][:location]) (get_notes().select {|n| n[:id].to_s == note_id }).first end
Source
# File lib/bandwidth-iris/port_out.rb, line 8 def get_notes() list = @client.make_request(:get, "#{@client.concat_account_path(PORT_OUT_PATH)}/#{id}/notes")[0][:note] return [] if !list if list.is_a?(Array) list else [list] end end