Class: SpreeCmCommissioner::RecipientSearcherQuery
- Inherits:
-
Object
- Object
- SpreeCmCommissioner::RecipientSearcherQuery
- Defined in:
- app/queries/spree_cm_commissioner/recipient_searcher_query.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#tenant_id ⇒ Object
readonly
Returns the value of attribute tenant_id.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(identifier, tenant_id) ⇒ RecipientSearcherQuery
constructor
A new instance of RecipientSearcherQuery.
Constructor Details
#initialize(identifier, tenant_id) ⇒ RecipientSearcherQuery
Returns a new instance of RecipientSearcherQuery.
5 6 7 8 |
# File 'app/queries/spree_cm_commissioner/recipient_searcher_query.rb', line 5 def initialize(identifier, tenant_id) @identifier = identifier @tenant_id = tenant_id end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
3 4 5 |
# File 'app/queries/spree_cm_commissioner/recipient_searcher_query.rb', line 3 def identifier @identifier end |
#tenant_id ⇒ Object (readonly)
Returns the value of attribute tenant_id.
3 4 5 |
# File 'app/queries/spree_cm_commissioner/recipient_searcher_query.rb', line 3 def tenant_id @tenant_id end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'app/queries/spree_cm_commissioner/recipient_searcher_query.rb', line 10 def call Spree.user_class.find_user_by_login(identifier, tenant_id) end |