Class: LWS::Auth::Device
- Inherits:
-
Generic::Model
- Object
- Generic::Model
- LWS::Auth::Device
- Defined in:
- lib/lws/auth.rb
Overview
Instance Attribute Summary collapse
-
#account ⇒ Account
The account that the device belongs to.
-
#account_id ⇒ Fixnum
The ID of the account that the device belongs to.
-
#created_at ⇒ String
The timestamp of when the device was created.
-
#id ⇒ Fixnum
readonly
The (unique) ID of the device.
-
#name ⇒ String
The name of the device.
-
#updated_at ⇒ String
The timestamp of when the device was last updated.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Device
constructor
A new instance of Device.
Constructor Details
#initialize(attrs = {}) ⇒ Device
Returns a new instance of Device.
203 204 205 |
# File 'lib/lws/auth.rb', line 203 def initialize(attrs = {}) super end |
Instance Attribute Details
#account ⇒ Account
Returns the account that the device belongs to.
192 |
# File 'lib/lws/auth.rb', line 192 belongs_to :account |
#account_id ⇒ Fixnum
Returns the ID of the account that the device belongs to.
|
|
# File 'lib/lws/auth.rb', line 194
|
#created_at ⇒ String
Returns the timestamp of when the device was created.
|
|
# File 'lib/lws/auth.rb', line 197
|
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the device.
|
|
# File 'lib/lws/auth.rb', line 184
|
#name ⇒ String
Returns the name of the device.
|
|
# File 'lib/lws/auth.rb', line 187
|
#updated_at ⇒ String
Returns the timestamp of when the device was last updated.
203 204 205 |
# File 'lib/lws/auth.rb', line 203 def initialize(attrs = {}) super end |