Class: AWS::SimpleWorkflow::Count

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#countInteger (readonly) Also known as: to_i

Returns:

  • (Integer)


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

Returns:

  • (Boolean)


35
36
37
# File 'lib/aws/simple_workflow/count.rb', line 35

def truncated?
  @truncated
end