class Io::Flow::V0::Models::ConsumerInvoiceDocumentType
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18001 def ConsumerInvoiceDocumentType.ALL @@all ||= [ConsumerInvoiceDocumentType.pdf] end
apply(value)
click to toggle source
Returns the instance of ConsumerInvoiceDocumentType
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 17986 def ConsumerInvoiceDocumentType.apply(value) if value.instance_of?(ConsumerInvoiceDocumentType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ConsumerInvoiceDocumentType.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of ConsumerInvoiceDocumentType
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 17996 def ConsumerInvoiceDocumentType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ConsumerInvoiceDocumentType.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 17981 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
pdf()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18005 def ConsumerInvoiceDocumentType.pdf @@_pdf ||= ConsumerInvoiceDocumentType.new('pdf') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18009 def to_hash value end