Module: Fortenet

Defined in:
lib/fortenet.rb,
lib/fortenet/client.rb,
lib/fortenet/options.rb,
lib/fortenet/request.rb,
lib/fortenet/version.rb

Defined Under Namespace

Classes: Client, Options, Request

Constant Summary collapse

VERSION =
'3.0.3'
@@endpoint =
'https://sandbox.forte.net/api/v3'
@@debug =
true
@@proxy_port =
80

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Fortenet)

    the object that the method was called on



27
28
29
# File 'lib/fortenet.rb', line 27

def self.configure
  yield self
end

.debug=(flag) ⇒ Object



14
15
16
17
# File 'lib/fortenet.rb', line 14

def self.debug=(flag)
  @@debug = flag
  Fortenet::Request.default_options.delete(:debug_output) unless flag
end

.debug_output=(output) ⇒ Object



19
20
21
22
# File 'lib/fortenet.rb', line 19

def self.debug_output=(output)
  return unless debug
  Fortenet::Request.debug_output(output)
end