Class: Wechat::Qcloud::Setting

Inherits:
Object
  • Object
show all
Defined in:
lib/wechat/qcloud/setting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(qcloud_env, qcloud_token, qcloud_token_lifespan) ⇒ Setting

Returns a new instance of Setting.



8
9
10
11
12
# File 'lib/wechat/qcloud/setting.rb', line 8

def initialize(qcloud_env, qcloud_token, qcloud_token_lifespan)
  @qcloud_env = qcloud_env
  @qcloud_token = qcloud_token
  @qcloud_token_lifespan = qcloud_token_lifespan
end

Instance Attribute Details

#qcloud_envObject (readonly)

Returns the value of attribute qcloud_env.



6
7
8
# File 'lib/wechat/qcloud/setting.rb', line 6

def qcloud_env
  @qcloud_env
end

#qcloud_tokenObject (readonly)

Returns the value of attribute qcloud_token.



6
7
8
# File 'lib/wechat/qcloud/setting.rb', line 6

def qcloud_token
  @qcloud_token
end

#qcloud_token_lifespanObject (readonly)

Returns the value of attribute qcloud_token_lifespan.



6
7
8
# File 'lib/wechat/qcloud/setting.rb', line 6

def qcloud_token_lifespan
  @qcloud_token_lifespan
end