Class: Yahoo::Placemaker::Ancestor

Inherits:
Object
  • Object
show all
Defined in:
lib/yahoo/placemaker/ancestor.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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