Class: Seam::Resources::Space

Inherits:
BaseResource show all
Defined in:
lib/seam/resources/space.rb

Overview

Represents a space that is a logical grouping of devices and entrances. You can assign access to an entire space, thereby making granting access more efficient.

Defined Under Namespace

Classes: CustomerData, Geolocation

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

#acs_entrance_countFloat

Number of entrances in the space.

Returns:

  • (Float)


39
40
41
# File 'lib/seam/resources/space.rb', line 39

def acs_entrance_count
  @acs_entrance_count
end

#customer_keyString?

Customer key associated with the space.

Returns:

  • (String, nil)


42
43
44
# File 'lib/seam/resources/space.rb', line 42

def customer_key
  @customer_key
end

#device_countFloat

Number of devices in the space.

Returns:

  • (Float)


45
46
47
# File 'lib/seam/resources/space.rb', line 45

def device_count
  @device_count
end

#display_nameString

Display name for the space.

Returns:

  • (String)


48
49
50
# File 'lib/seam/resources/space.rb', line 48

def display_name
  @display_name
end

#nameString

Name of the space.

Returns:

  • (String)


51
52
53
# File 'lib/seam/resources/space.rb', line 51

def name
  @name
end

#space_idString

ID of the space.

Returns:

  • (String)


54
55
56
# File 'lib/seam/resources/space.rb', line 54

def space_id
  @space_id
end

#space_keyString?

Unique key for the space within the workspace.

Returns:

  • (String, nil)


57
58
59
# File 'lib/seam/resources/space.rb', line 57

def space_key
  @space_key
end

#workspace_idString

ID of the workspace associated with the space.

Returns:

  • (String)


60
61
62
# File 'lib/seam/resources/space.rb', line 60

def workspace_id
  @workspace_id
end

Instance Method Details

#created_atTime

Date and time at which the space was created.

Returns:

  • (Time)


64
# File 'lib/seam/resources/space.rb', line 64

date_accessor :created_at

#customer_dataCustomerData?

Reservation/stay-related defaults for the space. Also carries the provider/PMS-supplied name under a <connector_type>_name key (e.g. guesty_name), which Seam preserves when you rename the space (read-only — managed by Seam).

Returns:



33
# File 'lib/seam/resources/space.rb', line 33

resource_accessor :customer_data, CustomerData

#geolocationGeolocation?

Geographic coordinates (latitude and longitude) of the space.

Returns:



36
# File 'lib/seam/resources/space.rb', line 36

resource_accessor :geolocation, Geolocation