Class: DmozSax::Topic

Inherits:
Object
  • Object
show all
Defined in:
lib/dmoz_sax/topic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path_str) ⇒ Topic

Returns a new instance of Topic.



5
6
7
8
9
# File 'lib/dmoz_sax/topic.rb', line 5

def initialize path_str
  @path = DmozSax::Path.new path_str
  @narrows, @symbolics, @related, @alt_langs, @links = [], [], [], [], []
  @cid = nil
end

Instance Attribute Details

#alt_langsObject

Returns the value of attribute alt_langs.



3
4
5
# File 'lib/dmoz_sax/topic.rb', line 3

def alt_langs
  @alt_langs
end

#cidObject

Returns the value of attribute cid.



3
4
5
# File 'lib/dmoz_sax/topic.rb', line 3

def cid
  @cid
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/dmoz_sax/topic.rb', line 3

def description
  @description
end

Returns the value of attribute links.



3
4
5
# File 'lib/dmoz_sax/topic.rb', line 3

def links
  @links
end

#narrowsObject

Returns the value of attribute narrows.



3
4
5
# File 'lib/dmoz_sax/topic.rb', line 3

def narrows
  @narrows
end

#pathObject

Returns the value of attribute path.



3
4
5
# File 'lib/dmoz_sax/topic.rb', line 3

def path
  @path
end

Returns the value of attribute related.



3
4
5
# File 'lib/dmoz_sax/topic.rb', line 3

def related
  @related
end

#symbolicsObject

Returns the value of attribute symbolics.



3
4
5
# File 'lib/dmoz_sax/topic.rb', line 3

def symbolics
  @symbolics
end

#timeObject

Returns the value of attribute time.



3
4
5
# File 'lib/dmoz_sax/topic.rb', line 3

def time
  @time
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/dmoz_sax/topic.rb', line 3

def title
  @title
end