Class: BandwidthIris::Csr

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

Class Method Summary collapse

Methods included from ClientWrapper

wrap_client_arg

Methods included from ApiItem

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

Class Method Details

.add_note(client, csr_id, note_data) ⇒ Object



32
33
34
35
# File 'lib/bandwidth-iris/csr.rb', line 32

def self.add_note(client, csr_id, note_data)
  data = client.make_request(:post, client.("#{CSR_PATH}/#{csr_id}/notes"), {:note => note_data})
  return data
end

.create(client, csr_data) ⇒ Object



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

def self.create(client, csr_data)
  data = client.make_request(:post, client.("#{CSR_PATH}"), {:csr => csr_data})
  return data
end

.get(client, csr_id) ⇒ Object



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

def self.get(client, csr_id)
  data = client.make_request(:get, client.("#{CSR_PATH}/#{csr_id}"))
  return data
end

.get_notes(client, csr_id) ⇒ Object



26
27
28
29
# File 'lib/bandwidth-iris/csr.rb', line 26

def self.get_notes(client, csr_id)
  data = client.make_request(:get, client.("#{CSR_PATH}/#{csr_id}/notes"))
  return data
end

.replace(client, csr_id, csr_data) ⇒ Object



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

def self.replace(client, csr_id, csr_data)
  data = client.make_request(:put, client.("#{CSR_PATH}/#{csr_id}"), {:csr => csr_data})
  return data
end

.update_note(client, csr_id, note_id, note_data) ⇒ Object



38
39
40
41
# File 'lib/bandwidth-iris/csr.rb', line 38

def self.update_note(client, csr_id, note_id, note_data)
  data = client.make_request(:put, client.("#{CSR_PATH}/#{csr_id}/notes/#{note_id}"), {:note => note_data})
  return data
end