Method: AsposeWordsCloud::FontInfo#initialize
- Defined in:
- lib/aspose_words_cloud/models/font_info.rb
#initialize(attributes = {}) ⇒ FontInfo
Initializes the object
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/aspose_words_cloud/models/font_info.rb', line 65 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.key?(:'FilePath') self.file_path = attributes[:'FilePath'] end if attributes.key?(:'FontFamilyName') self.font_family_name = attributes[:'FontFamilyName'] end if attributes.key?(:'FullFontName') self.full_font_name = attributes[:'FullFontName'] end if attributes.key?(:'Version') self.version = attributes[:'Version'] end end |