Class: Uniword::Docx::UserProfile
- Inherits:
-
Object
- Object
- Uniword::Docx::UserProfile
- Defined in:
- lib/uniword/docx/profile.rb
Overview
User profile: identity → author metadata.
Maps to Word’s UserInfo registry/plist entries. Always user-supplied — no presets.
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#company ⇒ Object
readonly
Returns the value of attribute company.
-
#country_region ⇒ Object
readonly
Returns the value of attribute country_region.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#initials ⇒ Object
readonly
Returns the value of attribute initials.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#zip ⇒ Object
readonly
Returns the value of attribute zip.
Class Method Summary collapse
-
.defaults ⇒ Object
Empty default user.
Instance Method Summary collapse
-
#initialize(name: "", initials: "", company: "", address: "", city: "", state: "", zip: "", country_region: "", phone: "", email: "") ⇒ UserProfile
constructor
A new instance of UserProfile.
Constructor Details
#initialize(name: "", initials: "", company: "", address: "", city: "", state: "", zip: "", country_region: "", phone: "", email: "") ⇒ UserProfile
Returns a new instance of UserProfile.
235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/uniword/docx/profile.rb', line 235 def initialize(name: "", initials: "", company: "", address: "", city: "", state: "", zip: "", country_region: "", phone: "", email: "") @name = name @initials = initials @company = company @address = address @city = city @state = state @zip = zip @country_region = country_region @phone = phone @email = email end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
231 232 233 |
# File 'lib/uniword/docx/profile.rb', line 231 def address @address end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
231 232 233 |
# File 'lib/uniword/docx/profile.rb', line 231 def city @city end |
#company ⇒ Object (readonly)
Returns the value of attribute company.
231 232 233 |
# File 'lib/uniword/docx/profile.rb', line 231 def company @company end |
#country_region ⇒ Object (readonly)
Returns the value of attribute country_region.
231 232 233 |
# File 'lib/uniword/docx/profile.rb', line 231 def country_region @country_region end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
231 232 233 |
# File 'lib/uniword/docx/profile.rb', line 231 def email @email end |
#initials ⇒ Object (readonly)
Returns the value of attribute initials.
231 232 233 |
# File 'lib/uniword/docx/profile.rb', line 231 def initials @initials end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
231 232 233 |
# File 'lib/uniword/docx/profile.rb', line 231 def name @name end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
231 232 233 |
# File 'lib/uniword/docx/profile.rb', line 231 def phone @phone end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
231 232 233 |
# File 'lib/uniword/docx/profile.rb', line 231 def state @state end |
#zip ⇒ Object (readonly)
Returns the value of attribute zip.
231 232 233 |
# File 'lib/uniword/docx/profile.rb', line 231 def zip @zip end |
Class Method Details
.defaults ⇒ Object
Empty default user
251 252 253 |
# File 'lib/uniword/docx/profile.rb', line 251 def self.defaults new end |