eventbrite/eventbrite-sdk-ruby

View on GitHub
lib/eventbrite_sdk/organization_entities.rb

Summary

Maintainability
A
0 mins
Test Coverage
class EventbriteSDK::OrgDiscount < EventbriteSDK::Discount
  resource_path create: 'organizations/:organization_id/discounts',
                update: 'discounts/:id'
end

class EventbriteSDK::OrgVenue < EventbriteSDK::Venue
  resource_path create: 'organizations/:organization_id/venues',
                update: 'venues/:id'
end

class EventbriteSDK::OrgEvent < EventbriteSDK::Event
  resource_path create: 'organizations/:organization_id/events',
                update: 'events/:id'

  belongs_to :venue, object_class: 'OrgVenue'
end