Class: Refinery::Bookings::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/refinery/bookings/version.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.buildObject (readonly)

Returns the value of attribute build.



10
11
12
# File 'lib/refinery/bookings/version.rb', line 10

def build
  @build
end

.majorObject (readonly)

Returns the value of attribute major.



10
11
12
# File 'lib/refinery/bookings/version.rb', line 10

def major
  @major
end

.minorObject (readonly)

Returns the value of attribute minor.



10
11
12
# File 'lib/refinery/bookings/version.rb', line 10

def minor
  @minor
end

.tinyObject (readonly)

Returns the value of attribute tiny.



10
11
12
# File 'lib/refinery/bookings/version.rb', line 10

def tiny
  @tiny
end

Class Method Details

.to_sObject



12
13
14
# File 'lib/refinery/bookings/version.rb', line 12

def to_s
  [@major, @minor, @tiny, @build].compact.join('.')
end