Sha256: 474aea981979a287c1728141026932e41bf69af9823e76ccaeb8c266b2e7f73a

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

module EventbriteSDK
  class Order < Resource
    resource_path 'orders/:id'

    has_many :attendees, object_class: 'Attendee'
    belongs_to :event, object_class: 'Event'

    schema_definition do
      string 'name'
      string 'first_name'
      string 'last_name'
      string 'email'
      string 'costs'
      utc 'created', read_only: true
      utc 'changed', read_only: true
      string 'resource_uri', read_only: true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eventbrite_sdk-3.6.0 lib/eventbrite_sdk/order.rb