Permalink
Browse files

Fixed formatting inconsistencies

  • Loading branch information...
1 parent 2983245 commit 267a80cab443e76a8166a0a9a98eba13e505a060 @cstrouse cstrouse committed Jan 7, 2012
Showing with 18 additions and 10 deletions.
  1. +6 −1 lib/monitis-SDK/contact.rb
  2. +12 −9 lib/monitis-SDK/user.rb
View
7 lib/monitis-SDK/contact.rb
@@ -38,7 +38,12 @@ def getContactGroups
end
def getRecentAlerts(timezone, startDate, endDate, limit)
- options = {:timezone => timezone, :startDate => startDate.to_i, :endDate => endDate.to_i, :limit => limit}
+ options = {
+ :timezone => timezone,
+ :startDate => startDate.to_i,
+ :endDate => endDate.to_i,
+ :limit => limit
+ }
get("recentAlerts",options)
end
View
21 lib/monitis-SDK/user.rb
@@ -1,14 +1,17 @@
class User < Base
- def initialize
- #@default_options= {:authToken=>getAuthToken}
- # puts @default_options
- end
-
-
- def getUserKey(username,password)
- query={:action=> "userkey" ,:userName=>username,:password=>pasword }
- res=get("userkey",query)
+ def initialize
+ #@default_options= {:authToken=>getAuthToken}
+ # puts @default_options
end
+
+ def getUserKey(username, password)
+ query = {
+ :action => "userkey",
+ :userName => username,
+ :password => pasword
+ }
+ res = get("userkey", query)
end
+end

0 comments on commit 267a80c

Please sign in to comment.