Module: BcnNi

Defined in:
lib/bcn_ni.rb,
lib/bcn_ni/core.rb,
lib/bcn_ni/version.rb,
lib/bcn_ni/helpers/request.rb

Defined Under Namespace

Classes: Request

Constant Summary collapse

VERSION =
'0.1.7'
@@exceptions =
[]

Class Method Summary collapse

Class Method Details

.exceptionsObject



24
25
26
# File 'lib/bcn_ni/core.rb', line 24

def self.exceptions
  return @@exceptions
end

.exchange_day(year, month, day, args = {}) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/bcn_ni/core.rb', line 15

def self.exchange_day(year, month, day, args = {})
  engine        = BcnNi::Request.new(args)

  result        = engine.exchange_day(year, month, day)
  @@exceptions  = engine.exceptions

  return result
end

.exchange_month(year, month, args = {}) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/bcn_ni/core.rb', line 6

def self.exchange_month(year, month, args = {})
  engine        = BcnNi::Request.new(args)

  result        = engine.exchange_month(year, month)
  @@exceptions  = engine.exceptions

  return result
end