Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created all RDoc and fix some method
- Loading branch information
1 parent
db9737d
commit e2b3654
Showing
16 changed files
with
886 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
module Helpers | ||
|
||
def handle_request(response) | ||
Helpers.handle_request response | ||
module Campaigning | ||
module Helpers | ||
#Method responsable to handle all response from the API server and raising an exception when | ||
#the API returns an error code (different from 0 (zero) ). | ||
def handle_request(response) | ||
Helpers.handle_request response | ||
end | ||
|
||
#Method responsable to handle all response from the API server and raising an exception when | ||
#the API returns an error code (different from 0 (zero) ). | ||
def Helpers.handle_request(response) | ||
if (response.class == Campaigning::Result && response.code != 0) | ||
raise response.code.to_s + " - " + response.message | ||
end | ||
|
||
def Helpers.handle_request(response) | ||
if (response.class == Campaigning::Result && response.code != 0) | ||
raise response.code.to_s + " - " + response.message | ||
end | ||
response | ||
end | ||
|
||
end | ||
response | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.