Sha256: 6fcf0d07d5a15bce7911aa8b28ee1b7128336c50bcc10303c80c46219fa2bfa1

Contents?: true

Size: 467 Bytes

Versions: 45

Compression:

Stored size: 467 Bytes

Contents

module Centaman
  class Service::GeneralAdmissionTicket < Centaman::Service
    include Centaman::JsonWrapper
    attr_reader :department_id

    def after_init(args)
      @department_id = args[:department_id]
    end

    def endpoint
      '/ticket_services/Ticket'
    end

    def object_class
      Centaman::Object::GeneralAdmissionTicket
    end

    def options
      super + [
        { key: 'DepartmentID', value: department_id }
      ]
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
centaman-8.0.0 lib/centaman/service/general_admission_ticket.rb
centaman-7.0.5 lib/centaman/service/general_admission_ticket.rb
centaman-7.0.4 lib/centaman/service/general_admission_ticket.rb
centaman-7.0.3 lib/centaman/service/general_admission_ticket.rb
centaman-7.0.2 lib/centaman/service/general_admission_ticket.rb
centaman-7.0.1 lib/centaman/service/general_admission_ticket.rb
centaman-7.0.0 lib/centaman/service/general_admission_ticket.rb
centaman-6.0.8 lib/centaman/service/general_admission_ticket.rb
centaman-6.0.7 lib/centaman/service/general_admission_ticket.rb
centaman-6.0.5 lib/centaman/service/general_admission_ticket.rb
centaman-6.0.4 lib/centaman/service/general_admission_ticket.rb
centaman-6.0.3 lib/centaman/service/general_admission_ticket.rb
centaman-6.0.2 lib/centaman/service/general_admission_ticket.rb
centaman-6.0.1 lib/centaman/service/general_admission_ticket.rb
centaman-6.0.0 lib/centaman/service/general_admission_ticket.rb
centaman-5.0.8 lib/centaman/service/general_admission_ticket.rb
centaman-5.0.7 lib/centaman/service/general_admission_ticket.rb
centaman-5.0.6 lib/centaman/service/general_admission_ticket.rb
centaman-5.0.5 lib/centaman/service/general_admission_ticket.rb
centaman-5.0.4 lib/centaman/service/general_admission_ticket.rb