Class: Beacon::Transport::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/beacon/transport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



7
8
9
# File 'lib/beacon/transport.rb', line 7

def error
  @error
end

#retry_afterObject

Returns the value of attribute retry_after

Returns:

  • (Object)

    the current value of retry_after



7
8
9
# File 'lib/beacon/transport.rb', line 7

def retry_after
  @retry_after
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



7
8
9
# File 'lib/beacon/transport.rb', line 7

def status
  @status
end

Instance Method Details

#transport_error?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/beacon/transport.rb', line 8

def transport_error?
  !error.nil?
end