Class: QuickBase::Objects::Variable
- Inherits:
-
Object
- Object
- QuickBase::Objects::Variable
- Defined in:
- lib/QuickBaseObjects.rb
Overview
Name and value of an Application variable.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #build(key, value) ⇒ Object
-
#initialize(key = nil, value = nil) ⇒ Variable
constructor
A new instance of Variable.
Constructor Details
#initialize(key = nil, value = nil) ⇒ Variable
Returns a new instance of Variable.
149 150 151 |
# File 'lib/QuickBaseObjects.rb', line 149 def initialize(key=nil,value=nil) build(key,value) if key and value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
148 149 150 |
# File 'lib/QuickBaseObjects.rb', line 148 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
148 149 150 |
# File 'lib/QuickBaseObjects.rb', line 148 def value @value end |
Instance Method Details
#build(key, value) ⇒ Object
152 153 154 155 |
# File 'lib/QuickBaseObjects.rb', line 152 def build(key,value) @name = key @value = value end |