Class: Metadata::TableOptions

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(time_to_live = -1,, max_version = 1, max_time_deviation = 86400) ⇒ TableOptions

Returns a new instance of TableOptions.



54
55
56
57
58
# File 'lib/tablestore/metadata.rb', line 54

def initialize(time_to_live = -1, max_version = 1, max_time_deviation = 86400)
  self.time_to_live = time_to_live
  self.max_version = max_version
  self.max_time_deviation = max_time_deviation
end

Instance Attribute Details

#max_time_deviationObject

Returns the value of attribute max_time_deviation.



53
54
55
# File 'lib/tablestore/metadata.rb', line 53

def max_time_deviation
  @max_time_deviation
end

#max_versionObject

Returns the value of attribute max_version.



53
54
55
# File 'lib/tablestore/metadata.rb', line 53

def max_version
  @max_version
end

#time_to_liveObject

Returns the value of attribute time_to_live.



53
54
55
# File 'lib/tablestore/metadata.rb', line 53

def time_to_live
  @time_to_live
end