Class: DeviceTracker::Transaction
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- DeviceTracker::Transaction
- Defined in:
- lib/device_tracker/models/transaction.rb
Class Method Summary collapse
- .activate ⇒ Object
- .checkout ⇒ Object
- .deactivate ⇒ Object
- .deletion ⇒ Object
- .found ⇒ Object
- .login ⇒ Object
- .missing ⇒ Object
- .registration ⇒ Object
- .return ⇒ Object
Instance Method Summary collapse
Class Method Details
.activate ⇒ Object
25 26 27 |
# File 'lib/device_tracker/models/transaction.rb', line 25 def self.activate "ACTIVATE" end |
.checkout ⇒ Object
33 34 35 |
# File 'lib/device_tracker/models/transaction.rb', line 33 def self.checkout "CHECKOUT" end |
.deactivate ⇒ Object
29 30 31 |
# File 'lib/device_tracker/models/transaction.rb', line 29 def self.deactivate "DEACTIVATE" end |
.deletion ⇒ Object
49 50 51 |
# File 'lib/device_tracker/models/transaction.rb', line 49 def self.deletion "DELETION" end |
.found ⇒ Object
21 22 23 |
# File 'lib/device_tracker/models/transaction.rb', line 21 def self.found "FOUND" end |
.login ⇒ Object
45 46 47 |
# File 'lib/device_tracker/models/transaction.rb', line 45 def self.login "LOGIN" end |
.missing ⇒ Object
17 18 19 |
# File 'lib/device_tracker/models/transaction.rb', line 17 def self.missing "MISSING" end |
.registration ⇒ Object
41 42 43 |
# File 'lib/device_tracker/models/transaction.rb', line 41 def self.registration "REGISTRATION" end |
.return ⇒ Object
37 38 39 |
# File 'lib/device_tracker/models/transaction.rb', line 37 def self.return "RETURN" end |
Instance Method Details
#created_at ⇒ Object
13 14 15 |
# File 'lib/device_tracker/models/transaction.rb', line 13 def created_at self[:created_at].strftime("%a %d %b %Y at %H:%M:%S") end |