Class: MyFonts::Designer

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

Direct Known Subclasses

Foundry

Instance Attribute Summary

Attributes inherited from Model

#url

Instance Method Summary collapse

Methods inherited from Model

#dom

Constructor Details

#initialize(url, name = nil) ⇒ Designer

Returns a new instance of Designer.



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

def initialize(url, name=nil)
  @name = name
  super(url)
end

Instance Method Details

#familiesObject



14
15
16
# File 'lib/myfonts/designer.rb', line 14

def families
  @families ||= get_families
end

#nameObject



10
11
12
# File 'lib/myfonts/designer.rb', line 10

def name
  @name ||= get_name
end