chrisradfordltd/chiketto

View on GitHub
lib/chiketto.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Chiketto
  ENDPOINT = 'https://www.eventbriteapi.com/v3/'

  require 'chiketto/exception'
  require 'chiketto/version'
  require 'chiketto/attribute'
  require 'chiketto/attr_attribute'
  require 'chiketto/resource'
  require 'chiketto/address'
  require 'chiketto/attendee'
  require 'chiketto/attendee_profile'
  require 'chiketto/category'
  require 'chiketto/email'
  require 'chiketto/choice'
  require 'chiketto/question'
  require 'chiketto/event'
  require 'chiketto/organizer'
  require 'chiketto/ticket_class'
  require 'chiketto/user'
  require 'chiketto/venue'

  class << self
    attr_writer :api_key

    def api_key
      @api_key || ENV['EVENTBRITE_API_TOKEN']
    end
  end

end