Class: DeviceTracker::Transaction

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/device_tracker/models/transaction.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.activateObject



25
26
27
# File 'lib/device_tracker/models/transaction.rb', line 25

def self.activate
  "ACTIVATE"
end

.checkoutObject



33
34
35
# File 'lib/device_tracker/models/transaction.rb', line 33

def self.checkout
  "CHECKOUT"
end

.deactivateObject



29
30
31
# File 'lib/device_tracker/models/transaction.rb', line 29

def self.deactivate
  "DEACTIVATE"
end

.deletionObject



49
50
51
# File 'lib/device_tracker/models/transaction.rb', line 49

def self.deletion
  "DELETION"
end

.foundObject



21
22
23
# File 'lib/device_tracker/models/transaction.rb', line 21

def self.found
  "FOUND"
end

.loginObject



45
46
47
# File 'lib/device_tracker/models/transaction.rb', line 45

def self.
  "LOGIN"
end

.missingObject



17
18
19
# File 'lib/device_tracker/models/transaction.rb', line 17

def self.missing
  "MISSING"
end

.registrationObject



41
42
43
# File 'lib/device_tracker/models/transaction.rb', line 41

def self.registration
  "REGISTRATION"
end

.returnObject



37
38
39
# File 'lib/device_tracker/models/transaction.rb', line 37

def self.return
  "RETURN"
end

Instance Method Details

#created_atObject



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