Class: QuickBase::Objects::Variable

Inherits:
Object
  • Object
show all
Defined in:
lib/QuickBaseObjects.rb

Overview

Name and value of an Application variable.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



148
149
150
# File 'lib/QuickBaseObjects.rb', line 148

def name
  @name
end

#valueObject (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