Class: Fontist::Import::FontStyle
- Inherits:
-
Object
- Object
- Fontist::Import::FontStyle
- Defined in:
- lib/fontist/import/font_style.rb
Instance Attribute Summary collapse
-
#copyright ⇒ Object
readonly
Returns the value of attribute copyright.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#family_name ⇒ Object
readonly
Returns the value of attribute family_name.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#post_script_name ⇒ Object
readonly
Returns the value of attribute post_script_name.
-
#preferred_family_name ⇒ Object
readonly
Returns the value of attribute preferred_family_name.
-
#preferred_style ⇒ Object
readonly
Returns the value of attribute preferred_style.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FontStyle
constructor
A new instance of FontStyle.
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
#copyright ⇒ Object (readonly)
Returns the value of attribute copyright.
4 5 6 |
# File 'lib/fontist/import/font_style.rb', line 4 def copyright @copyright end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/fontist/import/font_style.rb', line 4 def description @description end |
#family_name ⇒ Object (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 |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
4 5 6 |
# File 'lib/fontist/import/font_style.rb', line 4 def filename @filename end |
#full_name ⇒ Object (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_name ⇒ Object (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_name ⇒ Object (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_style ⇒ Object (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 |
#style ⇒ Object (readonly)
Returns the value of attribute style.
4 5 6 |
# File 'lib/fontist/import/font_style.rb', line 4 def style @style end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
4 5 6 |
# File 'lib/fontist/import/font_style.rb', line 4 def version @version end |