class Io::Flow::V0::Models::FtpFolder
The FTP Folder represents a single folder associated with an organization for which we create an external FTP Directory
Attributes
description[R]
id[R]
path[R]
webhook[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 43694 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id, :path, :webhook], 'FtpFolder') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) @path = HttpClient::Preconditions.assert_class('path', opts.delete(:path), String) @webhook = HttpClient::Preconditions.assert_boolean('webhook', opts.delete(:webhook)) @description = (x = opts.delete(:description); x.nil? ? nil : HttpClient::Preconditions.assert_class('description', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 43707 def copy(incoming={}) FtpFolder.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 43711 def to_hash { :id => id, :path => path, :webhook => webhook, :description => description } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 43703 def to_json JSON.dump(to_hash) end