Class: Device
- Inherits:
-
Object
- Object
- Device
- Defined in:
- lib/device/application.rb,
lib/device/io.rb,
lib/device/audio.rb,
lib/device/crypto.rb,
lib/device/helper.rb,
lib/device/system.rb,
lib/device/display.rb,
lib/device/network.rb,
lib/device/printer.rb,
lib/device/runtime.rb,
lib/device/setting.rb,
lib/device/support.rb,
lib/device/version.rb,
lib/device/magnetic.rb,
lib/device/params_dat.rb,
lib/device/notification.rb,
lib/device/transaction/emv.rb,
lib/device/transaction/iso.rb,
lib/device/notification_event.rb,
lib/device/transaction/download.rb,
lib/device/notification_callback.rb,
lib/device.rb
Overview
Scenario
-
Load from scratch
-
No file downloaded
-
with file downloaded
-
Second load
-
No crc update
-
With crc update
Defined Under Namespace
Classes: Application, Audio, Crypto, Display, IO, Magnetic, Network, Notification, NotificationCallback, NotificationEvent, ParamsDat, Printer, Runtime, Setting, Support, System, Transaction
Constant Summary collapse
- Helper =
Backward compatibility
DaFunk::Helper
Class Attribute Summary collapse
-
.adapter ⇒ Object
Returns the value of attribute adapter.
Class Method Summary collapse
- .call(*args) ⇒ Object
-
.flat_api ⇒ Class
Flat syntax/behaviour API between versions, to any application be able to execute on whole versions.
- .version ⇒ Object
Class Attribute Details
.adapter ⇒ Object
Returns the value of attribute adapter.
4 5 6 |
# File 'lib/device.rb', line 4 def adapter @adapter end |
Class Method Details
.call(*args) ⇒ Object
18 19 |
# File 'lib/device.rb', line 18 def self.call(*args) end |
.flat_api ⇒ Class
Flat syntax/behaviour API between versions, to any application be able to execute on whole versions.
10 11 12 13 14 15 16 |
# File 'lib/device.rb', line 10 def self.flat_api klass_version = Device.version.gsub(".", "") # Sample #if Device.version == "0.4.3" #const_get("VersionFlat#{klass_version}").flat Device #end end |
.version ⇒ Object
3 4 5 |
# File 'lib/device/version.rb', line 3 def self.version adapter.version end |