Class: Seam::Resources::Device::Properties::TtlockMetadata

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/seam/resources/device.rb

Defined Under Namespace

Classes: Features, WirelessKeypads

Instance Attribute Summary collapse

Attributes inherited from BaseResource

#client, #data

Instance Method Summary collapse

Methods inherited from BaseResource

#[], date_accessor, #initialize, #inspect, load_from_response, resource_accessor, resource_accessors, resource_list_accessor, resource_list_accessors, #update_from_response

Constructor Details

This class inherits a constructor from Seam::Resources::BaseResource

Instance Attribute Details

#feature_valueString?

Feature value for a TTLock device.

Returns:

  • (String, nil)


880
881
882
# File 'lib/seam/resources/device.rb', line 880

def feature_value
  @feature_value
end

#has_gatewayBoolean?

Indicates whether a TTLock device has a gateway.

Returns:

  • (Boolean, nil)


883
884
885
# File 'lib/seam/resources/device.rb', line 883

def has_gateway
  @has_gateway
end

#lock_aliasString?

Lock alias for a TTLock device.

Returns:

  • (String, nil)


886
887
888
# File 'lib/seam/resources/device.rb', line 886

def lock_alias
  @lock_alias
end

#lock_idFloat?

Lock ID for a TTLock device.

Returns:

  • (Float, nil)


889
890
891
# File 'lib/seam/resources/device.rb', line 889

def lock_id
  @lock_id
end

#timezone_raw_offset_msFloat?

Lock-side timezone offset in milliseconds east of UTC, as configured in the TTLock app. Source of truth for the lock's wall-clock interpretation of access code start/end times — a misconfigured value here is the typical cause of customer "codes offset by N hours" reports. Diagnostic only; Seam does not convert times based on this value.

Returns:

  • (Float, nil)


892
893
894
# File 'lib/seam/resources/device.rb', line 892

def timezone_raw_offset_ms
  @timezone_raw_offset_ms
end

Instance Method Details

#featuresFeatures?

Features for a TTLock device.

Returns:



874
# File 'lib/seam/resources/device.rb', line 874

resource_accessor :features, Features

#wireless_keypadsArray<WirelessKeypads>

Wireless keypads for a TTLock device.

Returns:



877
# File 'lib/seam/resources/device.rb', line 877

resource_list_accessor :wireless_keypads, WirelessKeypads