Class: Alula::Video::Device
- Inherits:
-
BaseResource
- Object
- ApiResource
- BaseResource
- Alula::Video::Device
- Extended by:
- ApiOperations::Delete, ApiOperations::Request, ApiOperations::Save
- 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 included from ApiOperations::Save
Methods included from ApiOperations::Delete
Methods inherited from BaseResource
api_name, #construct_from, resource_name, resource_url, #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
92 93 94 |
# File 'lib/alula/resources/video/device.rb', line 92 def is_hik? manufacturer == 'hikvision' end |
#is_jsw? ⇒ Boolean
88 89 90 |
# File 'lib/alula/resources/video/device.rb', line 88 def is_jsw? manufacturer == 'jsw' end |