Class: Model::Location

Inherits:
Object
  • Object
show all
Includes:
Answer
Defined in:
lib/models/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#queryObject (readonly)

Returns the value of attribute query.



5
6
7
# File 'lib/models/location.rb', line 5

def query
  @query
end

Instance Method Details

#nameObject



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