Class: Alula::Video::Device

Inherits:
BaseResource show all
Extended by:
ApiOperations::Request
Defined in:
lib/alula/resources/video/device.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 ApiOperations::Request

build_and_merge_item_relationships, extended, retrieve

Methods inherited from BaseResource

api_name, #construct_from, resource_name, resource_url

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 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

#is_hik?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/alula/resources/video/device.rb', line 19

def is_hik?
  manufacturer == 'hikvision'
end

#is_jsw?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/alula/resources/video/device.rb', line 15

def is_jsw?
  manufacturer == 'jsw'
end