class Typhoid::TyphoeusDescriptor

Public Instance Methods

bug_version() click to toggle source
# File lib/typhoid.rb, line 30
def bug_version
  matched_version[:bug].to_i
end
major_version() click to toggle source
# File lib/typhoid.rb, line 22
def major_version
  matched_version[:major].to_i
end
matched_version() click to toggle source
# File lib/typhoid.rb, line 18
def matched_version
  version.to_s.match /(?<major>\d+)\.(?<minor>\d+)\.(?<bug>\d+)/
end
minor_version() click to toggle source
# File lib/typhoid.rb, line 26
def minor_version
  matched_version[:minor].to_i
end
version() click to toggle source
# File lib/typhoid.rb, line 14
def version
  Typhoeus::VERSION
end