Class: SpreeCmCommissioner::Orders::FindByState

Inherits:
Spree::Orders::FindComplete
  • Object
show all
Defined in:
app/finders/spree_cm_commissioner/orders/find_by_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user: nil, number: nil, token: nil, store: nil, state: nil) ⇒ FindByState

Returns a new instance of FindByState.



6
7
8
9
# File 'app/finders/spree_cm_commissioner/orders/find_by_state.rb', line 6

def initialize(user: nil, number: nil, token: nil, store: nil, state: nil)
  @state = state
  super(user: user, number: number, token: token, store: store)
end

Instance Attribute Details

#numberObject (readonly)

Returns the value of attribute number.



4
5
6
# File 'app/finders/spree_cm_commissioner/orders/find_by_state.rb', line 4

def number
  @number
end

#stateObject (readonly)

Returns the value of attribute state.



4
5
6
# File 'app/finders/spree_cm_commissioner/orders/find_by_state.rb', line 4

def state
  @state
end

#storeObject (readonly)

Returns the value of attribute store.



4
5
6
# File 'app/finders/spree_cm_commissioner/orders/find_by_state.rb', line 4

def store
  @store
end

#tokenObject (readonly)

Returns the value of attribute token.



4
5
6
# File 'app/finders/spree_cm_commissioner/orders/find_by_state.rb', line 4

def token
  @token
end

#userObject (readonly)

Returns the value of attribute user.



4
5
6
# File 'app/finders/spree_cm_commissioner/orders/find_by_state.rb', line 4

def user
  @user
end