Class: EpubBook::Config
- Inherits:
-
Struct
- Object
- Struct
- EpubBook::Config
- Includes:
- Singleton
- Defined in:
- lib/epub_book.rb
Instance Attribute Summary collapse
-
#ext_name ⇒ Object
Returns the value of attribute ext_name.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#mail_address ⇒ Object
Returns the value of attribute mail_address.
-
#mail_body ⇒ Object
Returns the value of attribute mail_body.
-
#mail_from ⇒ Object
Returns the value of attribute mail_from.
-
#mail_password ⇒ Object
Returns the value of attribute mail_password.
-
#mail_port ⇒ Object
Returns the value of attribute mail_port.
-
#mail_subject ⇒ Object
Returns the value of attribute mail_subject.
-
#mail_user_name ⇒ Object
Returns the value of attribute mail_user_name.
-
#setting_file ⇒ Object
Returns the value of attribute setting_file.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
13 14 15 16 17 18 |
# File 'lib/epub_book.rb', line 13 def initialize self.mail_subject = 'epub 电子书' #self.mail_body = "您创建的电子书见附件\n" self.mail_port = 25 self.log_level = "info" end |
Instance Attribute Details
#ext_name ⇒ Object
Returns the value of attribute ext_name
11 12 13 |
# File 'lib/epub_book.rb', line 11 def ext_name @ext_name end |
#log_level ⇒ Object
Returns the value of attribute log_level
11 12 13 |
# File 'lib/epub_book.rb', line 11 def log_level @log_level end |
#mail_address ⇒ Object
Returns the value of attribute mail_address
11 12 13 |
# File 'lib/epub_book.rb', line 11 def mail_address @mail_address end |
#mail_body ⇒ Object
Returns the value of attribute mail_body
11 12 13 |
# File 'lib/epub_book.rb', line 11 def mail_body @mail_body end |
#mail_from ⇒ Object
Returns the value of attribute mail_from
11 12 13 |
# File 'lib/epub_book.rb', line 11 def mail_from @mail_from end |
#mail_password ⇒ Object
Returns the value of attribute mail_password
11 12 13 |
# File 'lib/epub_book.rb', line 11 def mail_password @mail_password end |
#mail_port ⇒ Object
Returns the value of attribute mail_port
11 12 13 |
# File 'lib/epub_book.rb', line 11 def mail_port @mail_port end |
#mail_subject ⇒ Object
Returns the value of attribute mail_subject
11 12 13 |
# File 'lib/epub_book.rb', line 11 def mail_subject @mail_subject end |
#mail_user_name ⇒ Object
Returns the value of attribute mail_user_name
11 12 13 |
# File 'lib/epub_book.rb', line 11 def mail_user_name @mail_user_name end |
#setting_file ⇒ Object
Returns the value of attribute setting_file
11 12 13 |
# File 'lib/epub_book.rb', line 11 def setting_file @setting_file end |