class Fastly::Invoice
An invoice for a time period
def self.delete_path
def self.delete_path raise "You can't DELETE to an invoice" end
def self.get_path(*args)
def self.get_path(*args) opts = args.size>0 ? args[0] : {} url = "/billing" if opts.has_key?(:service_id) url += "/service/#{opts[:service_id]}" end if opts.has_key?(:year) && opts.has_key?(:month) url += "/year/#{opts[:year]}/month/#{opts[:month]}" end url end
def self.list_path(*args)
def self.list_path(*args) get_path(*args) end
def self.post_path
def self.post_path raise "You can't POST to an invoice" end
def self.put_path
def self.put_path raise "You can't PUT to an invoice" end
def delete!
def delete! raise "You can't delete an invoice" end
def end
def end DateTime.parse(end_time).new_offset(0) end
def save!
def save! raise "You can't save an invoice" end
def start
def start DateTime.parse(start_time).new_offset(0) end