Class: MergeAccountingClient::InvoiceTypeEnum
- Inherits:
-
Object
- Object
- MergeAccountingClient::InvoiceTypeEnum
- Defined in:
- lib/merge_accounting_client/models/invoice_type_enum.rb
Constant Summary collapse
- RECEIVABLE =
"ACCOUNTS_RECEIVABLE".freeze
- PAYABLE =
"ACCOUNTS_PAYABLE".freeze
- MERGE_NONSTANDARD_VALUE =
"MERGE_NONSTANDARD_VALUE".freeze
Instance Attribute Summary collapse
-
#raw_value ⇒ Object
Returns the value of attribute raw_value.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Attribute Details
#raw_value ⇒ Object
Returns the value of attribute raw_value.
24 25 26 |
# File 'lib/merge_accounting_client/models/invoice_type_enum.rb', line 24 def raw_value @raw_value end |
#value ⇒ Object
Returns the value of attribute value.
23 24 25 |
# File 'lib/merge_accounting_client/models/invoice_type_enum.rb', line 23 def value @value end |
Class Method Details
.build_from_hash(value) ⇒ Object
40 41 42 |
# File 'lib/merge_accounting_client/models/invoice_type_enum.rb', line 40 def self.build_from_hash(value) InvoiceTypeEnum.new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/merge_accounting_client/models/invoice_type_enum.rb', line 29 def build_from_hash(value) @raw_value = value if ["ACCOUNTS_RECEIVABLE", "ACCOUNTS_PAYABLE", ].include? value @value = value else @value = MERGE_NONSTANDARD_VALUE end self end |