Sha256: 4fae6a8bb0dc0926376081140cecccf5fc8797ed19bd0e947c63cd83488d5b45

Contents?: true

Size: 453 Bytes

Versions: 8

Compression:

Stored size: 453 Bytes

Contents

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

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

    def endpoint
      '/ticket_services/Ticket'
    end

    def object_class
      Centaman::Object::GiftTicket
    end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
centaman-0.1.7 lib/centaman/service/gift_ticket.rb
centaman-0.1.6 lib/centaman/service/gift_ticket.rb
centaman-0.1.5 lib/centaman/service/gift_ticket.rb
centaman-0.1.4 lib/centaman/service/gift_ticket.rb
centaman-0.1.3 lib/centaman/service/gift_ticket.rb
centaman-0.1.2 lib/centaman/service/gift_ticket.rb
centaman-0.1.1 lib/centaman/service/gift_ticket.rb
centaman-0.1.0 lib/centaman/service/gift_ticket.rb