Class: Fontist::Import::FontStyle

Inherits:
Object
  • Object
show all
Defined in:
lib/fontist/import/font_style.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ FontStyle

Returns a new instance of FontStyle.



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fontist/import/font_style.rb', line 8

def initialize(attributes = {})
  @family_name = attributes[:family_name]
  @style = attributes[:style]
  @full_name = attributes[:full_name]
  @post_script_name = attributes[:post_script_name]
  @version = attributes[:version]
  @description = attributes[:description]
  @filename = attributes[:filename]
  @copyright = attributes[:copyright]
  @preferred_family_name = attributes[:preferred_family_name]
  @preferred_style = attributes[:preferred_style]
end

Instance Attribute Details

Returns the value of attribute copyright.



4
5
6
# File 'lib/fontist/import/font_style.rb', line 4

def copyright
  @copyright
end

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/fontist/import/font_style.rb', line 4

def description
  @description
end

#family_nameObject (readonly)

Returns the value of attribute family_name.



4
5
6
# File 'lib/fontist/import/font_style.rb', line 4

def family_name
  @family_name
end

#filenameObject (readonly)

Returns the value of attribute filename.



4
5
6
# File 'lib/fontist/import/font_style.rb', line 4

def filename
  @filename
end

#full_nameObject (readonly)

Returns the value of attribute full_name.



4
5
6
# File 'lib/fontist/import/font_style.rb', line 4

def full_name
  @full_name
end

#post_script_nameObject (readonly)

Returns the value of attribute post_script_name.



4
5
6
# File 'lib/fontist/import/font_style.rb', line 4

def post_script_name
  @post_script_name
end

#preferred_family_nameObject (readonly)

Returns the value of attribute preferred_family_name.



4
5
6
# File 'lib/fontist/import/font_style.rb', line 4

def preferred_family_name
  @preferred_family_name
end

#preferred_styleObject (readonly)

Returns the value of attribute preferred_style.



4
5
6
# File 'lib/fontist/import/font_style.rb', line 4

def preferred_style
  @preferred_style
end

#styleObject (readonly)

Returns the value of attribute style.



4
5
6
# File 'lib/fontist/import/font_style.rb', line 4

def style
  @style
end

#versionObject (readonly)

Returns the value of attribute version.



4
5
6
# File 'lib/fontist/import/font_style.rb', line 4

def version
  @version
end