Class: KeytechKit::Subarea
- Inherits:
-
Object
- Object
- KeytechKit::Subarea
- Defined in:
- lib/keytechKit/classes/subarea.rb
Instance Attribute Summary collapse
-
#displayname ⇒ Object
Returns the value of attribute displayname.
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(data) ⇒ Subarea
constructor
A new instance of Subarea.
Constructor Details
#initialize(data) ⇒ Subarea
Returns a new instance of Subarea.
6 7 8 9 |
# File 'lib/keytechKit/classes/subarea.rb', line 6 def initialize(data) self.displayname = data["DisplayText"] self.key = data["Key"] end |
Instance Attribute Details
#displayname ⇒ Object
Returns the value of attribute displayname.
3 4 5 |
# File 'lib/keytechKit/classes/subarea.rb', line 3 def displayname @displayname end |
#key ⇒ Object
Returns the value of attribute key.
4 5 6 |
# File 'lib/keytechKit/classes/subarea.rb', line 4 def key @key end |