Class: App42::Session::Attribute
- Inherits:
-
Object
- Object
- App42::Session::Attribute
- Defined in:
- lib/session/Session.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(session) ⇒ Attribute
constructor
This is a constructor that takes no parameter.
Constructor Details
#initialize(session) ⇒ Attribute
This is a constructor that takes no parameter
37 38 39 40 |
# File 'lib/session/Session.rb', line 37 def initialize(session) session.attributeList.push(self) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
29 30 31 |
# File 'lib/session/Session.rb', line 29 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
29 30 31 |
# File 'lib/session/Session.rb', line 29 def value @value end |