Sha256: 1aa67a1ca7124f603fcf7528457e698fdedd5c016e897ab1c34c84b50d4a285e

Contents?: true

Size: 265 Bytes

Versions: 5

Compression:

Stored size: 265 Bytes

Contents

class B2b < K2CommonEvents
  attr_reader :sending_till,
              :till_number

  def initialize(payload)
    super
    @till_number = payload.dig('event', 'resource', 'till_number')
    @sending_till = payload.dig('event', 'resource', 'sending_till')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
k2-connect-ruby-2.0.0 lib/k2-connect-ruby/k2_services/payloads/webhooks/b2b_received.rb
k2-connect-ruby-1.0.0 lib/k2-connect-ruby/k2_services/payloads/webhooks/b2b_received.rb
k2-connect-ruby-0.0.3 lib/k2-connect-ruby/k2_services/payloads/webhooks/b2b_received.rb
k2-connect-ruby-0.0.2 lib/k2-connect-ruby/k2_services/payloads/webhooks/b2b_received.rb
k2-connect-ruby-0.0.1 lib/k2-connect-ruby/k2_services/payloads/webhooks/b2b_received.rb