Sha256: 688aba63a6ad1f2c12c0b00ce3cd77e8510f6d1bba6168a0f37d8d06df928ee3

Contents?: true

Size: 447 Bytes

Versions: 3

Compression:

Stored size: 447 Bytes

Contents

module A2z
  module Requests
    class ResponseGroup < BlankSlate
      attr_reader :params
      
      def initialize(value, &block)
        @params = { 'ResponseGroup' => value }
        instance_eval(&block) if block_given?
      end
      
      def related_item_page(value)
        @params['RelatedItemPage'] = value
      end
      
      def relationship_type(value)
        @params['RelationshipType'] = value
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
a2z-0.0.3 lib/a2z/requests/response_group.rb
a2z-0.0.2 lib/a2z/requests/response_group.rb
a2z-0.0.1 lib/a2z/requests/response_group.rb