Sha256: 6f3c413a64c1bb5fb12f5cf45e6b93d7824b04b8afe90067aba024f7ab2b2abb
Contents?: true
Size: 633 Bytes
Versions: 2
Compression:
Stored size: 633 Bytes
Contents
require 'heracles/wrapper/notification_response' require 'delegate' # Using the DelegateClass inheritance option so that the Preconditions of the # base Heracles::Wrapper::NotificationResponse are preserved. class <%= class_name %> < DelegateClass(Heracles::Wrapper::NotificationResponse) def initialize(params) super(Heracles::Wrapper::NotificationResponse.new(params)) # The following two lines are logically equivalent # @pid = fetch(:pid) # @pid = params.fetch(:notification_payload).fetch(:pid) # # You may also want to define, at the class level the following: # attr_reader :pid end end
Version data entries
2 entries across 2 versions & 1 rubygems