Class: Yahoo::Placemaker::Scope
- Inherits:
-
Object
- Object
- Yahoo::Placemaker::Scope
- Defined in:
- lib/yahoo/placemaker/scope.rb
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) centroid
Returns the value of attribute centroid.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) type
Returns the value of attribute type.
-
- (Object) woe_id
Returns the value of attribute woe_id.
Instance Method Summary (collapse)
-
- (Scope) initialize(json)
constructor
A new instance of Scope.
Constructor Details
- (Scope) initialize(json)
A new instance of Scope
9 10 11 12 13 14 |
# File 'lib/yahoo/placemaker/scope.rb', line 9 def initialize(json) @centroid = Yahoo::Placemaker::LatLng.new(json['centroid']) @woe_id = json['woeId'] @type = json['type'] @name = json['name'] end |
Instance Attribute Details
- (Object) centroid
Returns the value of attribute centroid
7 8 9 |
# File 'lib/yahoo/placemaker/scope.rb', line 7 def centroid @centroid end |
- (Object) name
Returns the value of attribute name
7 8 9 |
# File 'lib/yahoo/placemaker/scope.rb', line 7 def name @name end |
- (Object) type
Returns the value of attribute type
7 8 9 |
# File 'lib/yahoo/placemaker/scope.rb', line 7 def type @type end |
- (Object) woe_id
Returns the value of attribute woe_id
7 8 9 |
# File 'lib/yahoo/placemaker/scope.rb', line 7 def woe_id @woe_id end |