Class: SpreeCmCommissioner::RecipientSearcherQuery

Inherits:
Object
  • Object
show all
Defined in:
app/queries/spree_cm_commissioner/recipient_searcher_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#identifierObject (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_idObject (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

#callObject



10
11
12
# File 'app/queries/spree_cm_commissioner/recipient_searcher_query.rb', line 10

def call
  Spree.user_class.(identifier, tenant_id)
end