Class: BulutfonSDK::REST::OutgoingFax

Inherits:
BaseRequest show all
Includes:
Util
Defined in:
lib/bulutfon_sdk/rest/outgoing_fax.rb

Constant Summary

Constants inherited from BaseRequest

BaseRequest::HTTP_HEADERS

Instance Method Summary collapse

Methods included from Util

#file_content_type

Constructor Details

#initialize(*args) ⇒ OutgoingFax



9
10
11
12
# File 'lib/bulutfon_sdk/rest/outgoing_fax.rb', line 9

def initialize(*args)
  super(*args)
  @resource = 'outgoing-faxes'
end

Instance Method Details

#all(params = {}) ⇒ Object



14
15
16
# File 'lib/bulutfon_sdk/rest/outgoing_fax.rb', line 14

def all( params = {} )
  prepare_request( 'get', @resource, params)
end

#create(params) ⇒ Object



22
23
24
25
# File 'lib/bulutfon_sdk/rest/outgoing_fax.rb', line 22

def create(params)
  prepare_atachment(params)
  prepare_request( 'post', @resource, params)
end

#get(id) ⇒ Object



18
19
20
# File 'lib/bulutfon_sdk/rest/outgoing_fax.rb', line 18

def get( id )
  prepare_request( 'get', "#{@resource}/#{id}")
end