Sha256: 986757ea29cfc6d5268bf61242487aa623b75d370c13a1e9bc3a8e19a17853e8
Contents?: true
Size: 502 Bytes
Versions: 7
Compression:
Stored size: 502 Bytes
Contents
module Twilio module REST class Records < ListResource SUBRESOURCES = [:daily, :monthly, :yearly, :all_time, :today, :yesterday, :this_month, :last_month] def initialize(path, client) super @list_key = 'usage_records' end def method_missing(method, *args) return super unless SUBRESOURCES.include? method self.class.new "#{@path}/#{twilify(method)}", @client end end class Record < InstanceResource; end end end
Version data entries
7 entries across 7 versions & 1 rubygems