Class: SaveTheMonth::QueryDsl

Inherits:
Object
  • Object
show all
Defined in:
lib/query_dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(balance) ⇒ QueryDsl

Returns a new instance of QueryDsl.



47
48
49
# File 'lib/query_dsl.rb', line 47

def initialize(balance)
  self.balance = balance
end

Instance Attribute Details

#balanceObject

Returns the value of attribute balance.



45
46
47
# File 'lib/query_dsl.rb', line 45

def balance
  @balance
end

Instance Method Details

#expected_amountObject



51
52
53
# File 'lib/query_dsl.rb', line 51

def expected_amount
  ExpectedAmountQuery.new(balance)
end