Class: EpubBook::Config

Inherits:
Struct
  • Object
show all
Includes:
Singleton
Defined in:
lib/epub_book.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_nameObject

Returns the value of attribute ext_name

Returns:

  • (Object)

    the current value of ext_name



11
12
13
# File 'lib/epub_book.rb', line 11

def ext_name
  @ext_name
end

#log_levelObject

Returns the value of attribute log_level

Returns:

  • (Object)

    the current value of log_level



11
12
13
# File 'lib/epub_book.rb', line 11

def log_level
  @log_level
end

#mail_addressObject

Returns the value of attribute mail_address

Returns:

  • (Object)

    the current value of mail_address



11
12
13
# File 'lib/epub_book.rb', line 11

def mail_address
  @mail_address
end

#mail_bodyObject

Returns the value of attribute mail_body

Returns:

  • (Object)

    the current value of mail_body



11
12
13
# File 'lib/epub_book.rb', line 11

def mail_body
  @mail_body
end

#mail_fromObject

Returns the value of attribute mail_from

Returns:

  • (Object)

    the current value of mail_from



11
12
13
# File 'lib/epub_book.rb', line 11

def mail_from
  @mail_from
end

#mail_passwordObject

Returns the value of attribute mail_password

Returns:

  • (Object)

    the current value of mail_password



11
12
13
# File 'lib/epub_book.rb', line 11

def mail_password
  @mail_password
end

#mail_portObject

Returns the value of attribute mail_port

Returns:

  • (Object)

    the current value of mail_port



11
12
13
# File 'lib/epub_book.rb', line 11

def mail_port
  @mail_port
end

#mail_subjectObject

Returns the value of attribute mail_subject

Returns:

  • (Object)

    the current value of mail_subject



11
12
13
# File 'lib/epub_book.rb', line 11

def mail_subject
  @mail_subject
end

#mail_user_nameObject

Returns the value of attribute mail_user_name

Returns:

  • (Object)

    the current value of mail_user_name



11
12
13
# File 'lib/epub_book.rb', line 11

def mail_user_name
  @mail_user_name
end

#setting_fileObject

Returns the value of attribute setting_file

Returns:

  • (Object)

    the current value of setting_file



11
12
13
# File 'lib/epub_book.rb', line 11

def setting_file
  @setting_file
end