Class: MyFonts::Model

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

Direct Known Subclasses

Designer, Face, Family

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Model

Returns a new instance of Model.



8
9
10
# File 'lib/myfonts/model.rb', line 8

def initialize(url)
  @url = url
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



6
7
8
# File 'lib/myfonts/model.rb', line 6

def url
  @url
end

Instance Method Details

#domObject



12
13
14
# File 'lib/myfonts/model.rb', line 12

def dom
  @dom ||= get_dom(@url)
end