Class: Interfax::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/interfax/base.rb

Direct Known Subclasses

Inbound

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.password ⇒ Object

Returns the value of attribute password.



6
7
8
# File 'lib/interfax/base.rb', line 6

def password
  @password
end

.username ⇒ Object

Returns the value of attribute username.



6
7
8
# File 'lib/interfax/base.rb', line 6

def username
  @username
end

Class Method Details

.delete(url, options = {}) ⇒ Object



20
21
22
23
24
# File 'lib/interfax/base.rb', line 20

def delete url, options = {}
  options[:username] = @username
  options[:password] = @password
  RestClient.delete url, options
end

.get(url, options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/interfax/base.rb', line 8

def get url, options = {}
  options[:username] = @username
  options[:password] = @password
  RestClient.get url, options
end

.post(url, options = {}) ⇒ Object



14
15
16
17
18
# File 'lib/interfax/base.rb', line 14

def post url, options = {}
  options[:username] = @username
  options[:password] = @password
  RestClient.post url, options
end