Class: TXTextControl::ReportingCloud::DocumentSettings
- Inherits:
-
Object
- Object
- TXTextControl::ReportingCloud::DocumentSettings
- Defined in:
- lib/txtextcontrol/reportingcloud/document_settings.rb
Overview
Holds the merge settings needed by the ReportingCloud#append_documents method.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#author ⇒ String
The document's author.
-
#creation_date ⇒ DateTime
The document's creation date.
-
#creator_application ⇒ String
The application which created the document.
-
#document_subject ⇒ String
The document's subject.
-
#document_title ⇒ String
The document's title.
-
#last_modification_date ⇒ DateTime
The document's last modification date.
-
#user_password ⇒ String
The password needed to open the document.
Instance Method Summary collapse
-
#initialize ⇒ DocumentSettings
constructor
A new instance of DocumentSettings.
-
#to_camelized_hash ⇒ Hash
Converts a DocumentSettings instance to a hash while converting the attribute names from snake case to camel case.
Constructor Details
#initialize ⇒ DocumentSettings
Returns a new instance of DocumentSettings
34 35 36 37 38 39 40 41 42 |
# File 'lib/txtextcontrol/reportingcloud/document_settings.rb', line 34 def initialize @author = nil @creation_date = nil @creator_application = nil @document_subject = nil @document_title = nil @last_modification_date = nil @user_password = nil end |
Instance Attribute Details
#author ⇒ String
The document's author.
27 28 29 |
# File 'lib/txtextcontrol/reportingcloud/document_settings.rb', line 27 def @author end |
#creation_date ⇒ DateTime
The document's creation date.
27 28 29 |
# File 'lib/txtextcontrol/reportingcloud/document_settings.rb', line 27 def creation_date @creation_date end |
#creator_application ⇒ String
The application which created the document.
27 28 29 |
# File 'lib/txtextcontrol/reportingcloud/document_settings.rb', line 27 def creator_application @creator_application end |
#document_subject ⇒ String
The document's subject.
27 28 29 |
# File 'lib/txtextcontrol/reportingcloud/document_settings.rb', line 27 def document_subject @document_subject end |
#document_title ⇒ String
The document's title.
27 28 29 |
# File 'lib/txtextcontrol/reportingcloud/document_settings.rb', line 27 def document_title @document_title end |
#last_modification_date ⇒ DateTime
The document's last modification date.
27 28 29 |
# File 'lib/txtextcontrol/reportingcloud/document_settings.rb', line 27 def last_modification_date @last_modification_date end |
#user_password ⇒ String
The password needed to open the document.
27 28 29 |
# File 'lib/txtextcontrol/reportingcloud/document_settings.rb', line 27 def user_password @user_password end |
Instance Method Details
#to_camelized_hash ⇒ Hash
Converts a DocumentSettings instance to a hash while converting the attribute names from snake case to camel case.
79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/txtextcontrol/reportingcloud/document_settings.rb', line 79 def to_camelized_hash return { "author" => @author, "creationDate" => @creation_date.nil? ? nil : @creation_date.iso8601, "creatorApplication" => @creator_application, "documentSubject" => @document_subject, "documentTitle" => @document_title, "lastModificationDate" => @last_modification_date.nil? ? nil : @last_modification_date.iso8601, "userPassword" => @user_password } end |