Class: LWS::Presence::Location
- Inherits:
-
Generic::Model
- Object
- Generic::Model
- LWS::Presence::Location
- Defined in:
- lib/lws/presence.rb
Overview
The location class
Instance Attribute Summary collapse
-
#company ⇒ Auth::Company
The company the location belongs to.
-
#company_id ⇒ Fixnum
The ID of the company the location belongs to.
-
#created_at ⇒ String
The timestamp of when the location was created.
-
#id ⇒ Fixnum
readonly
The (unique) ID of the location.
-
#lat ⇒ Float
The latitude of the location.
-
#logoff_time ⇒ String
The time everybody is automatically logged off (format HH:MM).
-
#long ⇒ Float
The longitude of the location.
-
#name ⇒ String
The name of the location.
-
#people ⇒ Array<Person>
The people associated with the location.
-
#range ⇒ Integer
The range around the location in meters.
-
#updated_at ⇒ String
The timestamp of when the location was last updated.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(attrs = {}) ⇒ Location
Returns a new instance of Location.
80 81 82 |
# File 'lib/lws/presence.rb', line 80 def initialize(attrs = {}) super end |
Instance Attribute Details
#company ⇒ Auth::Company
Returns the company the location belongs to.
65 |
# File 'lib/lws/presence.rb', line 65 belongs_to :company, class_name: "LWS::Auth::Company" |
#company_id ⇒ Fixnum
Returns the ID of the company the location belongs to.
|
|
# File 'lib/lws/presence.rb', line 67
|
#created_at ⇒ String
Returns the timestamp of when the location was created.
|
|
# File 'lib/lws/presence.rb', line 74
|
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the location.
|
|
# File 'lib/lws/presence.rb', line 44
|
#lat ⇒ Float
Returns the latitude of the location.
|
|
# File 'lib/lws/presence.rb', line 50
|
#logoff_time ⇒ String
Returns the time everybody is automatically logged off (format HH:MM).
|
|
# File 'lib/lws/presence.rb', line 59
|
#long ⇒ Float
Returns the longitude of the location.
|
|
# File 'lib/lws/presence.rb', line 53
|
#name ⇒ String
Returns the name of the location.
|
|
# File 'lib/lws/presence.rb', line 47
|
#people ⇒ Array<Person>
Returns the people associated with the location.
72 |
# File 'lib/lws/presence.rb', line 72 has_many :people |
#range ⇒ Integer
Returns the range around the location in meters.
|
|
# File 'lib/lws/presence.rb', line 56
|
#updated_at ⇒ String
Returns the timestamp of when the location was last updated.
80 81 82 |
# File 'lib/lws/presence.rb', line 80 def initialize(attrs = {}) super end |