Class: DivISOr

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

Class Method Summary collapse

Class Method Details

.iso10383(*args) ⇒ Object



22
23
24
# File 'lib/divISOr/divISOr.rb', line 22

def self.iso10383(*args)
  self.all(ISO10383, args).first
end

.iso3166(*args) ⇒ Object



18
19
20
# File 'lib/divISOr/divISOr.rb', line 18

def self.iso3166(*args)
  self.all(ISO3166, args).first
end

.iso4217(*args) ⇒ Object



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

def self.iso4217(*args)
  self.all(ISO4217, args)
end

.list_iso10383Object



34
35
36
# File 'lib/divISOr/divISOr.rb', line 34

def self.list_iso10383
  self.all(ISO10383)
end

.list_iso3166Object



30
31
32
# File 'lib/divISOr/divISOr.rb', line 30

def self.list_iso3166
  self.all(ISO3166)
end

.list_iso4217Object



26
27
28
# File 'lib/divISOr/divISOr.rb', line 26

def self.list_iso4217
  self.all(ISO4217)
end

.validate_iso10383(*args) ⇒ Object



10
11
12
# File 'lib/divISOr/divISOr.rb', line 10

def self.validate_iso10383(*args)
  ISO10383::Codes.new.validate(*args)
end

.validate_iso3166(*args) ⇒ Object



2
3
4
# File 'lib/divISOr/divISOr.rb', line 2

def self.validate_iso3166(*args)
  ISO3166::Codes.new.validate(*args)
end

.validate_iso4217(*args) ⇒ Object



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

def self.validate_iso4217(*args)
  ISO4217::Codes.new.validate(*args)
end