Class: LWS::Presence::Location

Inherits:
Generic::Model show all
Defined in:
lib/lws/presence.rb

Overview

The location class

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#companyAuth::Company

Returns the company the location belongs to.

Returns:



65
# File 'lib/lws/presence.rb', line 65

belongs_to :company, class_name: "LWS::Auth::Company"

#company_idFixnum

Returns the ID of the company the location belongs to.

Returns:

  • (Fixnum)

    the ID of the company the location belongs to



# File 'lib/lws/presence.rb', line 67

#created_atString

Returns the timestamp of when the location was created.

Returns:

  • (String)

    the timestamp of when the location was created



# File 'lib/lws/presence.rb', line 74

#idFixnum (readonly)

Returns the (unique) ID of the location.

Returns:

  • (Fixnum)

    the (unique) ID of the location



# File 'lib/lws/presence.rb', line 44

#latFloat

Returns the latitude of the location.

Returns:

  • (Float)

    the latitude of the location



# File 'lib/lws/presence.rb', line 50

#logoff_timeString

Returns the time everybody is automatically logged off (format HH:MM).

Returns:

  • (String)

    the time everybody is automatically logged off (format HH:MM)



# File 'lib/lws/presence.rb', line 59

#longFloat

Returns the longitude of the location.

Returns:

  • (Float)

    the longitude of the location



# File 'lib/lws/presence.rb', line 53

#nameString

Returns the name of the location.

Returns:

  • (String)

    the name of the location



# File 'lib/lws/presence.rb', line 47

#peopleArray<Person>

Returns the people associated with the location.

Returns:

  • (Array<Person>)

    the people associated with the location



72
# File 'lib/lws/presence.rb', line 72

has_many :people

#rangeInteger

Returns the range around the location in meters.

Returns:

  • (Integer)

    the range around the location in meters



# File 'lib/lws/presence.rb', line 56

#updated_atString

Returns the timestamp of when the location was last updated.

Returns:

  • (String)

    the timestamp of when the location was last updated



80
81
82
# File 'lib/lws/presence.rb', line 80

def initialize(attrs = {})
  super
end