Class: Alula::DeviceEventLog

Inherits:
RestResource show all
Extended by:
ApiOperations::List, ApiOperations::Request, RelationshipAttributes, ResourceAttributes
Defined in:
lib/alula/resources/device_event_log.rb

Instance Attribute Summary

Attributes inherited from ApiResource

#dirty_attributes, #errors, #id, #link_matchers, #links, #rate_limit, #raw_data, #values

Instance Method Summary collapse

Methods included from ResourceAttributes

date_fields, extended, field, field_names, filterable_fields, get_fields, get_http_methods, get_resource_path, get_type, http_methods, param_key, read_only_attributes, resource_path, sortable_fields, type

Methods included from RelationshipAttributes

check_relationship!, extended, get_relationship, get_relationships, relationship, relationship_exists?

Methods included from ApiOperations::Request

build_and_merge_item_relationships, extended, retrieve

Methods included from ApiOperations::List

build_and_merge_list_relationships, extended, list, method_missing

Methods inherited from RestResource

resource_url, #resource_url

Methods inherited from ApiResource

#annotate_errors, #apply_attributes, #as_json, #as_patchable_json, build, #cache_links, class_name, #clone, #construct_from, #dirty?, #errors?, #filter_builder, #initialize, #model_name, #reconstruct_from, #refresh

Constructor Details

This class inherits a constructor from Alula::ApiResource

Instance Method Details

#relay_status_nameObject



152
153
154
155
156
157
158
159
160
161
162
163
164
165
# File 'lib/alula/resources/device_event_log.rb', line 152

def relay_status_name
  relay_status_names = {
    0 => 'eventLog.relayStatus.notRelayed',
    1 => 'eventLog.relayStatus.attemptingToRelay',
    2 => 'eventLog.relayStatus.suppressed',
    3 => 'eventLog.relayStatus.timedOutCannotRelay',
    4 => 'eventLog.relayStatus.noReceiversConfigured',
    8 => 'eventLog.relayStatus.noStartTone',
    9 => 'eventLog.relayStatus.negativeAcknowledgement',
    10 => 'eventLog.relayStatus.relayCompleted'
  }

  relay_status_names[relay_status]
end