Class: Yahoo::Placemaker::Ancestor
- Inherits:
-
Object
- Object
- Yahoo::Placemaker::Ancestor
- Defined in:
- lib/yahoo/placemaker/ancestor.rb
Instance Attribute Summary (collapse)
-
- (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)
-
- (Ancestor) initialize(json)
constructor
A new instance of Ancestor.
Constructor Details
- (Ancestor) initialize(json)
A new instance of Ancestor
6 7 8 9 10 |
# File 'lib/yahoo/placemaker/ancestor.rb', line 6 def initialize (json) @woe_id = json['woeId'] @type = json['type'] @name = json['name'] end |
Instance Attribute Details
- (Object) name
Returns the value of attribute name
4 5 6 |
# File 'lib/yahoo/placemaker/ancestor.rb', line 4 def name @name end |
- (Object) type
Returns the value of attribute type
4 5 6 |
# File 'lib/yahoo/placemaker/ancestor.rb', line 4 def type @type end |
- (Object) woe_id
Returns the value of attribute woe_id
4 5 6 |
# File 'lib/yahoo/placemaker/ancestor.rb', line 4 def woe_id @woe_id end |