Class: Report::AccountingRecords::AccountingRecords::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/report/accounting_records/accounting_records.rb

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, start_date: nil, end_date: nil, inception_balance: nil, current_balance: nil, data: []) ⇒ Result

Returns a new instance of Result.



6
# File 'app/services/report/accounting_records/accounting_records.rb', line 6

def initialize(success: nil, start_date: nil, end_date: nil, inception_balance: nil, current_balance: nil, data: []) = super

Instance Attribute Details

#current_balanceObject (readonly)

Returns the value of attribute current_balance

Returns:

  • (Object)

    the current value of current_balance



5
6
7
# File 'app/services/report/accounting_records/accounting_records.rb', line 5

def current_balance
  @current_balance
end

#dataObject (readonly)

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



5
6
7
# File 'app/services/report/accounting_records/accounting_records.rb', line 5

def data
  @data
end

#end_dateObject (readonly)

Returns the value of attribute end_date

Returns:

  • (Object)

    the current value of end_date



5
6
7
# File 'app/services/report/accounting_records/accounting_records.rb', line 5

def end_date
  @end_date
end

#inception_balanceObject (readonly)

Returns the value of attribute inception_balance

Returns:

  • (Object)

    the current value of inception_balance



5
6
7
# File 'app/services/report/accounting_records/accounting_records.rb', line 5

def inception_balance
  @inception_balance
end

#start_dateObject (readonly)

Returns the value of attribute start_date

Returns:

  • (Object)

    the current value of start_date



5
6
7
# File 'app/services/report/accounting_records/accounting_records.rb', line 5

def start_date
  @start_date
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



5
6
7
# File 'app/services/report/accounting_records/accounting_records.rb', line 5

def success
  @success
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


7
# File 'app/services/report/accounting_records/accounting_records.rb', line 7

def success? = success