Class: Clacky::Fanout::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/clacky/fanout.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#durationObject

Returns the value of attribute duration

Returns:

  • (Object)

    the current value of duration



11
12
13
# File 'lib/clacky/fanout.rb', line 11

def duration
  @duration
end

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



11
12
13
# File 'lib/clacky/fanout.rb', line 11

def error
  @error
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



11
12
13
# File 'lib/clacky/fanout.rb', line 11

def index
  @index
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



11
12
13
# File 'lib/clacky/fanout.rb', line 11

def value
  @value
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/clacky/fanout.rb', line 12

def ok?
  error.nil?
end