Class: MyFonts::Model
- Inherits:
-
Object
- Object
- MyFonts::Model
- Defined in:
- lib/myfonts/model.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #dom ⇒ Object
-
#initialize(url) ⇒ Model
constructor
A new instance of Model.
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
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'lib/myfonts/model.rb', line 6 def url @url end |
Instance Method Details
#dom ⇒ Object
12 13 14 |
# File 'lib/myfonts/model.rb', line 12 def dom @dom ||= get_dom(@url) end |