Skip to content

Commit

Permalink
Refactor, update code style
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1m committed Mar 3, 2019
1 parent 4159079 commit 03f2ba6
Show file tree
Hide file tree
Showing 10 changed files with 349 additions and 312 deletions.
32 changes: 32 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Layout/AlignHash:
EnforcedColonStyle: table

Metrics/LineLength:
Max: 120

Metrics/MethodLength:
Enabled: false

Metrics/BlockLength:
Enabled: false

Metrics/AbcSize:
Enabled: false

Metrics/CyclomaticComplexity:
Enabled: false

Metrics/PerceivedComplexity:
Enabled: false

Style/Documentation:
Enabled: false

Style/RescueModifier:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Layout/EmptyLineAfterGuardClause:
Enabled: false
17 changes: 2 additions & 15 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,9 @@ Make sure you have latest version installed (1.0.0 or higher).

wufoo = WuParty.new(ACCOUNT, API_KEY)

The endpoint_domain and endpoint_prefix are optional parameters.
In some cases the endpoint_domain will be something other than wufoo.com for exacmple wufoo.eu

The endpoint_prefix will be the prefix that was assigned to you by wufoo. In some cases this is different than the account name.

Examples with optional parameters defined.

wufoo = WuParty.new(ACCOUNT, API_KEY, ENDPOINT_DOMAIN)
wufoo = WuParty.new(ACCOUNT, API_KEY, ENDPOINT_DOMAIN, ENDPOINT_PREFIX)






If your Wufoo domain is not "wufoo.com" (e.g. "wufoo.eu") and/or your account prefix does not match your account name, you can pass those in:

wufoo = WuParty.new(ACCOUNT, API_KEY, domain: 'wufoo.eu', account_prefix: 'myaccount')

=== Login

Expand Down
Loading

0 comments on commit 03f2ba6

Please sign in to comment.