Class: GetStatusResponse::Status

Inherits:
Struct
  • Object
show all
Defined in:
lib/dto/status/get_status_response.rb

Overview

Class Status represents elements of server response on get_status Status API request. Server response is sent to initializer which creates object with attributes field, attrs accessible via getters:

status = Status.new(...)
status.field     # => Array
status.attrs     # => Array of Attr

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

from_array, from_hash

Instance Attribute Details

#attrsObject

Returns the value of attribute attrs

Returns:

  • (Object)

    the current value of attrs



22
23
24
# File 'lib/dto/status/get_status_response.rb', line 22

def attrs
  @attrs
end

#fieldObject

Returns the value of attribute field

Returns:

  • (Object)

    the current value of field



22
23
24
# File 'lib/dto/status/get_status_response.rb', line 22

def field
  @field
end