Class: AWS::SimpleWorkflow::Count
- Inherits:
-
Object
- Object
- AWS::SimpleWorkflow::Count
- Defined in:
- lib/aws/simple_workflow/count.rb
Overview
Simple Workflow returns counts that may be truncated. Truncated counts indicate a lower bound. A count of 100 that is truncated could be represented to a user like “100+”. Non-truncated counts are definitive.
Instance Attribute Summary collapse
- #count ⇒ Integer (also: #to_i) readonly
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
-
#initialize(count, truncated) ⇒ Count
constructor
A new instance of Count.
- #truncated? ⇒ Boolean
Constructor Details
#initialize(count, truncated) ⇒ Count
Returns a new instance of Count.
24 25 26 27 |
# File 'lib/aws/simple_workflow/count.rb', line 24 def initialize count, truncated @count = count @truncated = truncated end |
Instance Attribute Details
#count ⇒ Integer (readonly) Also known as: to_i
30 31 32 |
# File 'lib/aws/simple_workflow/count.rb', line 30 def count @count end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
39 40 41 42 43 |
# File 'lib/aws/simple_workflow/count.rb', line 39 def == other other.is_a?(Count) and other.count == self.count and other.truncated? == self.truncated? end |
#truncated? ⇒ Boolean
35 36 37 |
# File 'lib/aws/simple_workflow/count.rb', line 35 def truncated? @truncated end |