Class: CreditMemo::SubmitToTaxjar::Result
- Inherits:
-
Data
- Object
- Data
- CreditMemo::SubmitToTaxjar::Result
- Defined in:
- app/services/credit_memo/submit_to_taxjar.rb
Instance Attribute Summary collapse
-
#calculated_tax ⇒ Object
readonly
Returns the value of attribute calculated_tax.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#original_tax_amount ⇒ Object
readonly
Returns the value of attribute original_tax_amount.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(success: nil, original_tax_amount: nil, calculated_tax: nil, message: nil) ⇒ Result
constructor
A new instance of Result.
- #success? ⇒ Boolean
Constructor Details
#initialize(success: nil, original_tax_amount: nil, calculated_tax: nil, message: nil) ⇒ Result
Returns a new instance of Result.
5 |
# File 'app/services/credit_memo/submit_to_taxjar.rb', line 5 def initialize(success: nil, original_tax_amount: nil, calculated_tax: nil, message: nil) = super |
Instance Attribute Details
#calculated_tax ⇒ Object (readonly)
Returns the value of attribute calculated_tax
4 5 6 |
# File 'app/services/credit_memo/submit_to_taxjar.rb', line 4 def calculated_tax @calculated_tax end |
#message ⇒ Object (readonly)
Returns the value of attribute message
4 5 6 |
# File 'app/services/credit_memo/submit_to_taxjar.rb', line 4 def @message end |
#original_tax_amount ⇒ Object (readonly)
Returns the value of attribute original_tax_amount
4 5 6 |
# File 'app/services/credit_memo/submit_to_taxjar.rb', line 4 def original_tax_amount @original_tax_amount end |
#success ⇒ Object (readonly)
Returns the value of attribute success
4 5 6 |
# File 'app/services/credit_memo/submit_to_taxjar.rb', line 4 def success @success end |
Instance Method Details
#success? ⇒ Boolean
6 |
# File 'app/services/credit_memo/submit_to_taxjar.rb', line 6 def success? = success |