Class: YunTongXun::Config
- Inherits:
-
Object
- Object
- YunTongXun::Config
- Defined in:
- lib/yun_tong_xun/config.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
Returns the value of attribute env.
-
#main_account_sid ⇒ Object
Returns the value of attribute main_account_sid.
-
#main_account_token ⇒ Object
Returns the value of attribute main_account_token.
-
#rest_client_options ⇒ Object
Returns the value of attribute rest_client_options.
-
#soft_version ⇒ Object
Returns the value of attribute soft_version.
-
#sub_account_sid ⇒ Object
Returns the value of attribute sub_account_sid.
-
#sub_account_token ⇒ Object
Returns the value of attribute sub_account_token.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
17 18 19 20 21 |
# File 'lib/yun_tong_xun/config.rb', line 17 def initialize @soft_version = '2013-12-26' @rest_client_options = { timeout: 10, open_timeout: 10, verify_ssl: true } @env = :production end |
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env.
14 15 16 |
# File 'lib/yun_tong_xun/config.rb', line 14 def env @env end |
#main_account_sid ⇒ Object
Returns the value of attribute main_account_sid.
15 16 17 |
# File 'lib/yun_tong_xun/config.rb', line 15 def main_account_sid @main_account_sid end |
#main_account_token ⇒ Object
Returns the value of attribute main_account_token.
15 16 17 |
# File 'lib/yun_tong_xun/config.rb', line 15 def main_account_token @main_account_token end |
#rest_client_options ⇒ Object
Returns the value of attribute rest_client_options.
14 15 16 |
# File 'lib/yun_tong_xun/config.rb', line 14 def @rest_client_options end |
#soft_version ⇒ Object
Returns the value of attribute soft_version.
14 15 16 |
# File 'lib/yun_tong_xun/config.rb', line 14 def soft_version @soft_version end |
#sub_account_sid ⇒ Object
Returns the value of attribute sub_account_sid.
16 17 18 |
# File 'lib/yun_tong_xun/config.rb', line 16 def sub_account_sid @sub_account_sid end |
#sub_account_token ⇒ Object
Returns the value of attribute sub_account_token.
16 17 18 |
# File 'lib/yun_tong_xun/config.rb', line 16 def sub_account_token @sub_account_token end |