class Io::Flow::V0::Models::FtpFolderForm
Attributes
description[R]
path[R]
webhook[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 43726 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:path], 'FtpFolderForm') @path = HttpClient::Preconditions.assert_class('path', opts.delete(:path), String) @webhook = HttpClient::Preconditions.assert_boolean('webhook', (x = opts.delete(:webhook); x.nil? ? false : x)) @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 43738 def copy(incoming={}) FtpFolderForm.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 43742 def to_hash { :path => path, :webhook => webhook, :description => description } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 43734 def to_json JSON.dump(to_hash) end