Class: Report::AccountingRecords::AccountingRecords::Result
- Inherits:
-
Data
- Object
- Data
- Report::AccountingRecords::AccountingRecords::Result
- Defined in:
- app/services/report/accounting_records/accounting_records.rb
Overview
Service object: result.
Instance Attribute Summary collapse
-
#current_balance ⇒ Object
readonly
Returns the value of attribute current_balance.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#inception_balance ⇒ Object
readonly
Returns the value of attribute inception_balance.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(success: nil, start_date: nil, end_date: nil, inception_balance: nil, current_balance: nil, data: []) ⇒ Result
constructor
A new instance of Result.
- #success? ⇒ Boolean
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_balance ⇒ Object (readonly)
Returns the value of attribute current_balance
5 6 7 |
# File 'app/services/report/accounting_records/accounting_records.rb', line 5 def current_balance @current_balance end |
#data ⇒ Object (readonly)
Returns the value of attribute data
5 6 7 |
# File 'app/services/report/accounting_records/accounting_records.rb', line 5 def data @data end |
#end_date ⇒ Object (readonly)
Returns the value of attribute end_date
5 6 7 |
# File 'app/services/report/accounting_records/accounting_records.rb', line 5 def end_date @end_date end |
#inception_balance ⇒ Object (readonly)
Returns the value of attribute inception_balance
5 6 7 |
# File 'app/services/report/accounting_records/accounting_records.rb', line 5 def inception_balance @inception_balance end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date
5 6 7 |
# File 'app/services/report/accounting_records/accounting_records.rb', line 5 def start_date @start_date end |
#success ⇒ Object (readonly)
Returns the value of attribute success
5 6 7 |
# File 'app/services/report/accounting_records/accounting_records.rb', line 5 def success @success end |
Instance Method Details
#success? ⇒ Boolean
7 |
# File 'app/services/report/accounting_records/accounting_records.rb', line 7 def success? = success |