Exception: XiWechatCorp::InvalidCorpIDError

Inherits:
Error
  • Object
show all
Defined in:
lib/xi_wechat_corp/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(corpid) ⇒ InvalidCorpIDError

Returns a new instance of InvalidCorpIDError.



7
8
9
10
# File 'lib/xi_wechat_corp/error.rb', line 7

def initialize(corpid)
  @corpid = corpid
  super "Invalid corpid: #{@corpid}"
end

Instance Attribute Details

#corpidObject (readonly)

Returns the value of attribute corpid.



6
7
8
# File 'lib/xi_wechat_corp/error.rb', line 6

def corpid
  @corpid
end