Class: Sanjose::MulticastResult

Inherits:
Object
  • Object
show all
Defined in:
lib/sanjose/multicast_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @success = options[:success]
  @failure = options[:failure]
  @canonical_ids = options[:canonical_ids]
  @multicast_id = options[:multicast_id]      
  @results = []      
  @retry_multicast_ids = []
end

Instance Attribute Details

#canonical_idsObject (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

#failureObject (readonly)

Returns the value of attribute failure.



4
5
6
# File 'lib/sanjose/multicast_result.rb', line 4

def failure
  @failure
end

#multicast_idObject (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

#resultsObject (readonly)

Returns the value of attribute results.



4
5
6
# File 'lib/sanjose/multicast_result.rb', line 4

def results
  @results
end

#retry_multicast_idsObject

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

#successObject (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