Sha256: c4c262d27e20fda6263c433cafe0e4a94cc28d197b350fbefa41b7fe08b47bb2

Contents?: true

Size: 788 Bytes

Versions: 20

Compression:

Stored size: 788 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module DearInventory
  module Models
    class Request < DearInventory::Model
      extend T::Sig

      sig { returns(Symbol) }
      attr_reader :action
      sig { returns(T.class_of(DearInventory::Model)) }
      attr_reader :model
      sig { returns(DearInventory::Parameters) }
      attr_reader :params
      sig { returns(String) }
      attr_reader :uri

      sig { params(parameters: T::Hash[Symbol, T.untyped]).void }
      def initialize(parameters)
        @action = T.let(parameters[:action], Symbol)
        @model = T.let(parameters[:model], T.class_of(DearInventory::Model))
        @params = T.let(parameters[:params], DearInventory::Parameters)
        @uri = T.let(parameters[:uri], String)
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
dear_inventory-1.4.0 lib/dear_inventory/models/request.rb
dear_inventory-1.3.0 lib/dear_inventory/models/request.rb
dear_inventory-1.2.0 lib/dear_inventory/models/request.rb
dear_inventory-1.1.1 lib/dear_inventory/models/request.rb
dear_inventory-1.1.0 lib/dear_inventory/models/request.rb
dear_inventory-1.0.0 lib/dear_inventory/models/request.rb
dear_inventory-0.7.5 lib/dear_inventory/models/request.rb
dear_inventory-0.7.4 lib/dear_inventory/models/request.rb
dear_inventory-0.7.3 lib/dear_inventory/models/request.rb
dear_inventory-0.7.2 lib/dear_inventory/models/request.rb
dear_inventory-0.7.1 lib/dear_inventory/models/request.rb
dear_inventory-0.7.0 lib/dear_inventory/models/request.rb
dear_inventory-0.6.3 lib/dear_inventory/models/request.rb
dear_inventory-0.6.2 lib/dear_inventory/models/request.rb
dear_inventory-0.6.1 lib/dear_inventory/models/request.rb
dear_inventory-0.6.0 lib/dear_inventory/models/request.rb
dear_inventory-0.5.0 lib/dear_inventory/models/request.rb
dear_inventory-0.4.1 lib/dear_inventory/models/request.rb
dear_inventory-0.4.0 lib/dear_inventory/models/request.rb
dear_inventory-0.3.0 lib/dear_inventory/models/request.rb