Class: MyFonts::Family

Inherits:
Model
  • Object
show all
Includes:
Previewable
Defined in:
lib/myfonts/family.rb

Instance Attribute Summary

Attributes inherited from Model

#url

Instance Method Summary collapse

Methods included from Previewable

#preview

Methods inherited from Model

#dom

Constructor Details

#initialize(url, name = nil) ⇒ Family

Returns a new instance of Family.



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

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

Instance Method Details

#descriptionObject



33
34
35
# File 'lib/myfonts/family.rb', line 33

def description
  @description ||= get_description
end

#design_datesObject



29
30
31
# File 'lib/myfonts/family.rb', line 29

def design_dates
  @design_dates ||= get_design_dates
end

#designersObject



25
26
27
# File 'lib/myfonts/family.rb', line 25

def designers
  @designers ||= get_designers
end

#facesObject



21
22
23
# File 'lib/myfonts/family.rb', line 21

def faces
  @faces ||= get_faces
end

#foundryObject



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

def foundry
  @foundry ||= get_foundry
end

#imagesObject



37
38
39
# File 'lib/myfonts/family.rb', line 37

def images
  @images ||= get_images
end

#nameObject



13
14
15
# File 'lib/myfonts/family.rb', line 13

def name
  @name ||= get_name
end