Class: KeytechKit::Subarea

Inherits:
Object
  • Object
show all
Defined in:
lib/keytechKit/classes/subarea.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#displaynameObject

Returns the value of attribute displayname.



3
4
5
# File 'lib/keytechKit/classes/subarea.rb', line 3

def displayname
  @displayname
end

#keyObject

Returns the value of attribute key.



4
5
6
# File 'lib/keytechKit/classes/subarea.rb', line 4

def key
  @key
end