Class: Serfx::Response::Header

Inherits:
Struct
  • Object
show all
Defined in:
lib/serfx/response.rb

Overview

Header is composed of two sub-parts

  • Seq : an integer representing the original request
  • Error: a string that represent whether the request made, was successfull or no. For all successful RPC requests, Error should be an empty string

{"Seq": 0, "Error": ""}

Instance Attribute Summary collapse

Instance Attribute Details

#error ⇒ Object

Returns the value of attribute error

Returns:

  • (Object) —

    the current value of error



17
18
19
# File 'lib/serfx/response.rb', line 17

def error
  @error
end

#seq ⇒ Object

Returns the value of attribute seq

Returns:

  • (Object) —

    the current value of seq



17
18
19
# File 'lib/serfx/response.rb', line 17

def seq
  @seq
end