Class: Alparser

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/alparser.rb,
lib/alparser/version.rb

Defined Under Namespace

Modules: Keyed, Parser Classes: Branc, Climb, Plezanje, User

Constant Summary collapse

LIST =
[
  { url: "http://www.kozjak.org",  parser: Alparser::Branc },
  { url: "http://www.pdtam.org",   parser: Alparser::Branc },
  { url: "http://www.aocelje.org", parser: Alparser::Branc },
  { url: "http://ao.pdgrmada.org", parser: Alparser::Branc },
  { url: "http://alphut.net",      parser: Alparser::Branc },
  { url: "http://plezanje.net",    parser: Alparser::Plezanje }
]
VERSION =
"0.1.3"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, parser: Alparser::Branc) ⇒ Alparser

Returns a new instance of Alparser.



20
21
22
23
# File 'lib/alparser.rb', line 20

def initialize url, parser: Alparser::Branc
  @url = url
  @parser = parser.new(@url)
end

Instance Attribute Details

#parserObject

Returns the value of attribute parser.



18
19
20
# File 'lib/alparser.rb', line 18

def parser
  @parser
end

#urlObject (readonly)

Returns the value of attribute url.



17
18
19
# File 'lib/alparser.rb', line 17

def url
  @url
end