Class: Sanjose::MulticastResult
- Inherits:
-
Object
- Object
- Sanjose::MulticastResult
- Defined in:
- lib/sanjose/multicast_result.rb
Instance Attribute Summary collapse
-
#canonical_ids ⇒ Object
readonly
Returns the value of attribute canonical_ids.
-
#failure ⇒ Object
readonly
Returns the value of attribute failure.
-
#multicast_id ⇒ Object
readonly
Returns the value of attribute multicast_id.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#retry_multicast_ids ⇒ Object
Returns the value of attribute retry_multicast_ids.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
- #add_result(result) ⇒ Object
-
#initialize(options = {}) ⇒ MulticastResult
constructor
A new instance of MulticastResult.
Constructor Details
#initialize(options = {}) ⇒ MulticastResult
Returns a new instance of MulticastResult.
6 7 8 9 10 11 12 13 |
# File 'lib/sanjose/multicast_result.rb', line 6 def initialize( = {}) @success = [:success] @failure = [:failure] @canonical_ids = [:canonical_ids] @multicast_id = [:multicast_id] @results = [] @retry_multicast_ids = [] end |
Instance Attribute Details
#canonical_ids ⇒ Object (readonly)
Returns the value of attribute canonical_ids.
4 5 6 |
# File 'lib/sanjose/multicast_result.rb', line 4 def canonical_ids @canonical_ids end |
#failure ⇒ Object (readonly)
Returns the value of attribute failure.
4 5 6 |
# File 'lib/sanjose/multicast_result.rb', line 4 def failure @failure end |
#multicast_id ⇒ Object (readonly)
Returns the value of attribute multicast_id.
4 5 6 |
# File 'lib/sanjose/multicast_result.rb', line 4 def multicast_id @multicast_id end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
4 5 6 |
# File 'lib/sanjose/multicast_result.rb', line 4 def results @results end |
#retry_multicast_ids ⇒ Object
Returns the value of attribute retry_multicast_ids.
3 4 5 |
# File 'lib/sanjose/multicast_result.rb', line 3 def retry_multicast_ids @retry_multicast_ids end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
4 5 6 |
# File 'lib/sanjose/multicast_result.rb', line 4 def success @success end |
Instance Method Details
#add_result(result) ⇒ Object
15 16 17 |
# File 'lib/sanjose/multicast_result.rb', line 15 def add_result(result) @results << result end |