Sha256: 86204e7dbb0c80d9cc10f2607cf6377fccb9bbd33db595216b428f91745f470a
Contents?: true
Size: 1.13 KB
Versions: 5
Compression:
Stored size: 1.13 KB
Contents
require 'sappy/responses/auth' require 'sappy/responses/account_info' require 'sappy/responses/summary_statistics' require 'sappy/responses/monitors' require 'sappy/responses/add_monitor' require 'sappy/responses/edit_monitor' require 'sappy/responses/remove_monitor' require 'sappy/responses/enable_monitor' require 'sappy/responses/disable_monitor' require 'sappy/responses/daily_statistics' require 'sappy/responses/monthly_statistics' require 'sappy/responses/annual_statistics' module Sappy module Responses MAP = { "auth" => Auth, "accountinfo" => AccountInfo, "summarystatistics" => SummaryStatistics, "monitors" => Monitors, "addmonitor" => AddMonitor, "editmonitor" => EditMonitor, "removemonitor" => RemoveMonitor, "enablemonitor" => EnableMonitor, "disablemonitor" => DisableMonitor, "dailystatistics" => DailyStatistics, "monthlystatistics" => MonthlyStatistics, "annualstatistics" => AnnualStatistics } def self.for(action) MAP[action] || raise(ArgumentError, "Couldn't find a Response class to parse a #{action.inspect} result") end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
sappy-0.1.7 | lib/sappy/responses.rb |
sappy-0.1.6 | lib/sappy/responses.rb |
sappy-0.1.5 | lib/sappy/responses.rb |
sappy-0.1.4 | lib/sappy/responses.rb |
sappy-0.1.3 | lib/sappy/responses.rb |