Class: PlaceAttribute
- Inherits:
-
Object
- Object
- PlaceAttribute
- Includes:
- MongoMapper::Document
- Defined in:
- lib/oii_twitter_goodies/model/place_attribute.rb
Class Method Summary collapse
Class Method Details
.example ⇒ Object
8 9 10 |
# File 'lib/oii_twitter_goodies/model/place_attribute.rb', line 8 def self.example {"street_address"=>"5403 Stevens Creek Blvd"} end |
.new_from_raw(key, value, place_id) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/oii_twitter_goodies/model/place_attribute.rb', line 12 def self.new_from_raw(key, value, place_id) obj = self.new obj.name = key obj.value = value obj.place_id = place_id obj.save! obj end |