Class: Model::Location
- Inherits:
-
Object
- Object
- Model::Location
- Includes:
- Answer
- Defined in:
- lib/models/location.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(node, repository) ⇒ Location
constructor
A new instance of Location.
- #name ⇒ Object
- #name=(value) ⇒ Object
Methods included from Answer
create, #question, #reply_type
Constructor Details
#initialize(node, repository) ⇒ Location
Returns a new instance of Location.
9 10 11 |
# File 'lib/models/location.rb', line 9 def initialize(node, repository) @query = NodeQuery.new(node, repository) end |
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
5 6 7 |
# File 'lib/models/location.rb', line 5 def query @query end |
Instance Method Details
#name ⇒ Object
13 14 15 |
# File 'lib/models/location.rb', line 13 def name query.value(LV.locationName) end |
#name=(value) ⇒ Object
17 18 19 |
# File 'lib/models/location.rb', line 17 def name=(value) query.set_value(LV.locationName, value) end |