Class: Metadata::Condition
- Inherits:
-
Object
- Object
- Metadata::Condition
- Defined in:
- lib/tablestore/metadata.rb
Instance Attribute Summary collapse
-
#column_condition ⇒ Object
Returns the value of attribute column_condition.
-
#row_existence_expectation ⇒ Object
Returns the value of attribute row_existence_expectation.
Instance Method Summary collapse
-
#initialize(row_existence_expectation, column_condition = nil) ⇒ Condition
constructor
A new instance of Condition.
- #set_row_existence_expectation(row_existence_expectation) ⇒ Object
Constructor Details
#initialize(row_existence_expectation, column_condition = nil) ⇒ Condition
Returns a new instance of Condition.
142 143 144 145 146 147 |
# File 'lib/tablestore/metadata.rb', line 142 def initialize(row_existence_expectation, column_condition = nil) self.row_existence_expectation = nil self.column_condition = column_condition set_row_existence_expectation(row_existence_expectation) end |
Instance Attribute Details
#column_condition ⇒ Object
Returns the value of attribute column_condition.
140 141 142 |
# File 'lib/tablestore/metadata.rb', line 140 def column_condition @column_condition end |
#row_existence_expectation ⇒ Object
Returns the value of attribute row_existence_expectation.
140 141 142 |
# File 'lib/tablestore/metadata.rb', line 140 def row_existence_expectation @row_existence_expectation end |
Instance Method Details
#set_row_existence_expectation(row_existence_expectation) ⇒ Object
149 150 151 152 |
# File 'lib/tablestore/metadata.rb', line 149 def set_row_existence_expectation(row_existence_expectation) raise TableStoreClientError.new("Expect input row_existence_expectation should be one of #{RowExistenceExpectation::MEMBERS.to_s}, but #{row_existence_expectation}") unless RowExistenceExpectation::VALUES.include? row_existence_expectation self.row_existence_expectation = row_existence_expectation end |