Class: PICC
- Inherits:
-
Object
- Object
- PICC
- Defined in:
- lib/picc.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#sak ⇒ Object
readonly
Returns the value of attribute sak.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
- #halt ⇒ Object
-
#initialize(pcd, uid, sak) ⇒ PICC
constructor
A new instance of PICC.
- #resume_communication ⇒ Object
Constructor Details
#initialize(pcd, uid, sak) ⇒ PICC
Returns a new instance of PICC.
5 6 7 8 9 10 |
# File 'lib/picc.rb', line 5 def initialize(pcd, uid, sak) @pcd = pcd @uid = uid @sak = sak @halted = false end |
Instance Attribute Details
#sak ⇒ Object (readonly)
Returns the value of attribute sak.
3 4 5 |
# File 'lib/picc.rb', line 3 def sak @sak end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
2 3 4 |
# File 'lib/picc.rb', line 2 def uid @uid end |
Instance Method Details
#halt ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/picc.rb', line 21 def halt if @pcd.picc_halt @halted = true else @halted = false end end |
#resume_communication ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/picc.rb', line 12 def resume_communication if @pcd.reestablish_picc_communication(@uid) @halted = false true else false end end |