Sha256: bce1f8d9a322f62339d565360de79a760934aab513a5c04a10f991c60e696277
Contents?: true
Size: 677 Bytes
Versions: 54
Compression:
Stored size: 677 Bytes
Contents
class Ey::Core::Client class Real def get_plan_usages(params={}) account_id = params["account_id"] billing_month = params.fetch("billing_month", Date.today.strftime("%Y-%m")) request( :path => "accounts/#{account_id}/plan-usages/#{billing_month}" ) end end # Real class Mock def get_plan_usages(params={}) account_id = params["account_id"] billing_month = params.fetch("billing_month", Date.today.strftime("%Y-%m")) response( :body => { "plan_usages" => self.find(:plan_usages, account_id)[billing_month] || [] }, :status => 200, ) end end # Mock end # Ey::Core::Client
Version data entries
54 entries across 54 versions & 3 rubygems