Module: ArcWeld::Relationships::HasLocation

Defined in:
lib/arc_weld/relationships/has_location.rb

Instance Method Summary collapse

Instance Method Details

#has_location=(location) ⇒ Object



9
10
11
12
13
# File 'lib/arc_weld/relationships/has_location.rb', line 9

def has_location=(location)
  
  location.add_location_resource(self) unless location.nil?
  @has_location=location
end

#has_location_relationshipObject



4
5
6
7
8
# File 'lib/arc_weld/relationships/has_location.rb', line 4

def has_location_relationship
  unless has_location.nil?
    { 'hasLocation' => { 'list!' => has_location.ref.render } }
  end
end