Class: Seam::Resources::Space
- Inherits:
-
BaseResource
- Object
- BaseResource
- Seam::Resources::Space
- 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
-
#acs_entrance_count ⇒ Float
Number of entrances in the space.
-
#customer_key ⇒ String?
Customer key associated with the space.
-
#device_count ⇒ Float
Number of devices in the space.
-
#display_name ⇒ String
Display name for the space.
-
#name ⇒ String
Name of the space.
-
#space_id ⇒ String
ID of the space.
-
#space_key ⇒ String?
Unique key for the space within the workspace.
-
#workspace_id ⇒ String
ID of the workspace associated with the space.
Attributes inherited from BaseResource
Instance Method Summary collapse
-
#created_at ⇒ Time
Date and time at which the space was created.
-
#customer_data ⇒ CustomerData?
Reservation/stay-related defaults for the space.
-
#geolocation ⇒ Geolocation?
Geographic coordinates (latitude and longitude) of the space.
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_count ⇒ Float
Number of entrances in the space.
39 40 41 |
# File 'lib/seam/resources/space.rb', line 39 def acs_entrance_count @acs_entrance_count end |
#customer_key ⇒ String?
Customer key associated with the space.
42 43 44 |
# File 'lib/seam/resources/space.rb', line 42 def customer_key @customer_key end |
#device_count ⇒ Float
Number of devices in the space.
45 46 47 |
# File 'lib/seam/resources/space.rb', line 45 def device_count @device_count end |
#display_name ⇒ String
Display name for the space.
48 49 50 |
# File 'lib/seam/resources/space.rb', line 48 def display_name @display_name end |
#name ⇒ String
Name of the space.
51 52 53 |
# File 'lib/seam/resources/space.rb', line 51 def name @name end |
#space_id ⇒ String
ID of the space.
54 55 56 |
# File 'lib/seam/resources/space.rb', line 54 def space_id @space_id end |
#space_key ⇒ String?
Unique key for the space within the workspace.
57 58 59 |
# File 'lib/seam/resources/space.rb', line 57 def space_key @space_key end |
#workspace_id ⇒ String
ID of the workspace associated with the space.
60 61 62 |
# File 'lib/seam/resources/space.rb', line 60 def workspace_id @workspace_id end |
Instance Method Details
#created_at ⇒ Time
Date and time at which the space was created.
64 |
# File 'lib/seam/resources/space.rb', line 64 date_accessor :created_at |
#customer_data ⇒ CustomerData?
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).
33 |
# File 'lib/seam/resources/space.rb', line 33 resource_accessor :customer_data, CustomerData |
#geolocation ⇒ Geolocation?
Geographic coordinates (latitude and longitude) of the space.
36 |
# File 'lib/seam/resources/space.rb', line 36 resource_accessor :geolocation, Geolocation |