Class: DearInventory::Models::TestRequest
- Inherits:
-
Request
- Object
- DearInventory::Model
- Request
- DearInventory::Models::TestRequest
- Extended by:
- T::Sig
- Defined in:
- lib/dear_inventory/models/test_request.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(parameters) ⇒ TestRequest
constructor
A new instance of TestRequest.
Methods inherited from DearInventory::Model
define_readers, enumerate_fields, fields, #initialize_abstract, #to_h
Methods included from IsASubclass
Constructor Details
#initialize(parameters) ⇒ TestRequest
Returns a new instance of TestRequest.
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/dear_inventory/models/test_request.rb', line 19 def initialize(parameters) @action = T.let(parameters[:action], T.nilable(Symbol)) @model = T.let( parameters[:model], T.nilable(T.class_of(DearInventory::Model)) ) @params = T.let( parameters[:params], T.nilable(DearInventory::Parameters) ) @uri = T.let(parameters[:uri], T.nilable(String)) end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
10 11 12 |
# File 'lib/dear_inventory/models/test_request.rb', line 10 def action @action end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
12 13 14 |
# File 'lib/dear_inventory/models/test_request.rb', line 12 def model @model end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
14 15 16 |
# File 'lib/dear_inventory/models/test_request.rb', line 14 def params @params end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
16 17 18 |
# File 'lib/dear_inventory/models/test_request.rb', line 16 def uri @uri end |