class Io::Flow::V0::Models::FtpFileSource
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20878 def FtpFileSource.ALL @@all ||= [FtpFileSource.flow, FtpFileSource.organization] end
apply(value)
click to toggle source
Returns the instance of FtpFileSource
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 20863 def FtpFileSource.apply(value) if value.instance_of?(FtpFileSource) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || FtpFileSource.new(value)) end end
flow()
click to toggle source
Indicates flow created this file
# File lib/flow_commerce/flow_api_v0_client.rb, line 20883 def FtpFileSource.flow @@_flow ||= FtpFileSource.new('flow') end
from_string(value)
click to toggle source
Returns the instance of FtpFileSource
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 20873 def FtpFileSource.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) FtpFileSource.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20858 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
organization()
click to toggle source
Indicates the organization created this file
# File lib/flow_commerce/flow_api_v0_client.rb, line 20888 def FtpFileSource.organization @@_organization ||= FtpFileSource.new('organization') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20892 def to_hash value end