Module: ActiveMerchant::Billing::Integrations::PayuIn::VERSION

Extended by:
Comparable
Defined in:
lib/active_merchant/payu_in/version.rb

Constant Summary collapse

MAJOR =
0
MINOR =
0
TINY =
1
SIGNATURE =
[MAJOR, MINOR, TINY]
STRING =
SIGNATURE.join '.'

Class Method Summary collapse

Class Method Details

.<=>(other) ⇒ Object



27
28
29
30
# File 'lib/active_merchant/payu_in/version.rb', line 27

def self.<=>(other)
  other = other.split('.').map { |i| i.to_i } if other.respond_to? :split
  SIGNATURE <=> Array(other)
end

.hashObject



23
24
25
# File 'lib/active_merchant/payu_in/version.rb', line 23

def self.hash
  STRING.hash
end

.inspectObject



32
33
34
# File 'lib/active_merchant/payu_in/version.rb', line 32

def self.inspect
  STRING.inspect
end

.majorObject



18
# File 'lib/active_merchant/payu_in/version.rb', line 18

def self.major; MAJOR  end

.method_missing(meth, *args, &block) ⇒ Object



40
41
42
43
# File 'lib/active_merchant/payu_in/version.rb', line 40

def self.method_missing(meth, *args, &block)
  return super unless STRING.respond_to?(meth)
  STRING.send(meth, *args, &block)
end

.minorObject



19
# File 'lib/active_merchant/payu_in/version.rb', line 19

def self.minor; MINOR  end

.respond_to?(meth) ⇒ Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/active_merchant/payu_in/version.rb', line 36

def self.respond_to?(meth, *)
  meth.to_s !~ /^__|^to_str$/ and STRING.respond_to? meth unless super
end

.tinyObject



20
# File 'lib/active_merchant/payu_in/version.rb', line 20

def self.tiny;  TINY   end

.to_sObject



21
# File 'lib/active_merchant/payu_in/version.rb', line 21

def self.to_s;  STRING end