Class: FattureInCloud_Ruby_Sdk::IssuedDocumentType
- Inherits:
-
Object
- Object
- FattureInCloud_Ruby_Sdk::IssuedDocumentType
- Defined in:
- lib/fattureincloud_ruby_sdk/models/issued_document_type.rb
Constant Summary collapse
- INVOICE =
"invoice".freeze
- QUOTE =
"quote".freeze
- PROFORMA =
"proforma".freeze
- RECEIPT =
"receipt".freeze
- DELIVERY_NOTE =
"delivery_note".freeze
- CREDIT_NOTE =
"credit_note".freeze
- ORDER =
"order".freeze
- WORK_REPORT =
"work_report".freeze
- SUPPLIER_ORDER =
"supplier_order".freeze
- SELF_OWN_INVOICE =
"self_own_invoice".freeze
- SELF_SUPPLIER_INVOICE =
"self_supplier_invoice".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
30 31 32 |
# File 'lib/fattureincloud_ruby_sdk/models/issued_document_type.rb', line 30 def self.all_vars @all_vars ||= [INVOICE, QUOTE, PROFORMA, RECEIPT, DELIVERY_NOTE, CREDIT_NOTE, ORDER, WORK_REPORT, SUPPLIER_ORDER, SELF_OWN_INVOICE, SELF_SUPPLIER_INVOICE].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
37 38 39 |
# File 'lib/fattureincloud_ruby_sdk/models/issued_document_type.rb', line 37 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
44 45 46 47 |
# File 'lib/fattureincloud_ruby_sdk/models/issued_document_type.rb', line 44 def build_from_hash(value) return value if IssuedDocumentType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #IssuedDocumentType" end |