Class: Keyremac::ConsumerKey
- Inherits:
-
Struct
- Object
- Struct
- Keyremac::ConsumerKey
show all
- Includes:
- Keyable
- Defined in:
- lib/keyremac/key.rb,
lib/keyremac/dump.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Keyable
#add_rule, #overlaid, #to
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
58
59
60
|
# File 'lib/keyremac/key.rb', line 58
def code
@code
end
|
Instance Method Details
#consumer_key? ⇒ Boolean
60
|
# File 'lib/keyremac/key.rb', line 60
def consumer_key?; true end
|
#dump(xml) ⇒ Object
29
30
31
|
# File 'lib/keyremac/dump.rb', line 29
def dump(xml)
"ConsumerKeyCode::#{code.upcase}"
end
|
#to_key ⇒ Object
61
|
# File 'lib/keyremac/key.rb', line 61
def to_key; self end
|