Class: Dictionary

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, url, xpath, color = nil) ⇒ Dictionary



29
30
31
32
33
34
# File 'lib/dictionary.rb', line 29

def initialize(name, url, xpath, color = nil)
  @name = name
  @url = url
  @xpath = xpath
  @color = color
end

Instance Attribute Details

#colorObject

Returns the value of attribute color.



28
29
30
# File 'lib/dictionary.rb', line 28

def color
  @color
end

#nameObject (readonly)

Returns the value of attribute name.



27
28
29
# File 'lib/dictionary.rb', line 27

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.



27
28
29
# File 'lib/dictionary.rb', line 27

def url
  @url
end

#xpathObject (readonly)

Returns the value of attribute xpath.



27
28
29
# File 'lib/dictionary.rb', line 27

def xpath
  @xpath
end