Class: GetStatusResponse::Attr

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

Overview

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

attr = Attr.new(...)

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

from_array, from_hash

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



30
31
32
# File 'lib/dto/status/get_status_response.rb', line 30

def attributes
  @attributes
end

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



30
31
32
# File 'lib/dto/status/get_status_response.rb', line 30

def errors
  @errors
end

#timestampObject

Returns the value of attribute timestamp

Returns:

  • (Object)

    the current value of timestamp



30
31
32
# File 'lib/dto/status/get_status_response.rb', line 30

def timestamp
  @timestamp
end