Exception: MindMeisterClient::ApiCallRequiredError
- Inherits:
-
Exception
- Object
- Exception
- MindMeisterClient::ApiCallRequiredError
- Defined in:
- lib/mind_meister_client/api_call_required_error.rb
Instance Attribute Summary collapse
-
#api_call_url ⇒ Object
Returns the value of attribute api_call_url.
-
#msg ⇒ Object
Returns the value of attribute msg.
-
#template ⇒ Object
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(msg, api_call_url) ⇒ ApiCallRequiredError
constructor
A new instance of ApiCallRequiredError.
- #setup_template ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(msg, api_call_url) ⇒ ApiCallRequiredError
Returns a new instance of ApiCallRequiredError.
9 10 11 12 |
# File 'lib/mind_meister_client/api_call_required_error.rb', line 9 def initialize msg, api_call_url @msg = msg @api_call_url = api_call_url end |
Instance Attribute Details
#api_call_url ⇒ Object
Returns the value of attribute api_call_url.
5 6 7 |
# File 'lib/mind_meister_client/api_call_required_error.rb', line 5 def api_call_url @api_call_url end |
#msg ⇒ Object
Returns the value of attribute msg.
3 4 5 |
# File 'lib/mind_meister_client/api_call_required_error.rb', line 3 def msg @msg end |
#template ⇒ Object
Returns the value of attribute template.
4 5 6 |
# File 'lib/mind_meister_client/api_call_required_error.rb', line 4 def template @template end |
Instance Method Details
#setup_template ⇒ Object
25 26 27 |
# File 'lib/mind_meister_client/api_call_required_error.rb', line 25 def setup_template @template = '%{msg}: %{api_call_url}' end |
#to_s ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/mind_meister_client/api_call_required_error.rb', line 14 def to_s setup_template unless @template data = { api_call_url: @api_call_url, msg: @msg } @template%data end |