lib/globalsms/report.rb in globalsms-0.4.0 vs lib/globalsms/report.rb in globalsms-0.4.1
- old
+ new
@@ -1,9 +1,9 @@
module GlobalSMS
class REPORT
- def initialize(api_key, api_secret)
- @api_key = api_key
- @api_secret = api_secret
+ def initialize(args)
+ @api_key = args[:api_key]
+ @api_secret = args[:api_secret]
end
def message(message_id)
uri = "/sms/report/#{message_id}?key=#{@api_key}&secret=#{@api_secret}"
get_to_api(uri)