Sha256: fc29bbbef9f72ab09c10d2e793076f3fe521bbb68d37a7aac978ce0be242fdab
Contents?: true
Size: 877 Bytes
Versions: 9
Compression:
Stored size: 877 Bytes
Contents
module Youroom class DestroyParticipation < Request attr_reader :billing_id, :billing_group_id, :email def initialize(access_token, billing_id, billing_group_id, email, url=BASE_URL) [billing_id, billing_group_id].each {|arg| required_structure(arg, String, Symbol, Fixnum)} required_structure(email, String) @billing_id, @billing_group_id, @email = billing_id.to_s, billing_group_id.to_s, email super(access_token, url) end def path if url == BASE_URL File.join(::Youroom::BASE_URL, 'billings', billing_id, 'billing_groups', billing_group_id, 'participations', 'remove?format=json') else File.join(url, 'enterprise', 'billings', billing_id, 'billing_groups', billing_group_id, 'participations', 'remove?format=json') end end def params { :email => email }.optimize end end end
Version data entries
9 entries across 9 versions & 1 rubygems