class Io::Flow::V0::Models::TokenRbacAuthenticationForm
Used to authenticate a given token with RBAC checks.
Attributes
method[R]
path[R]
path_pattern[R]
token[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 71179 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:token, :method, :path_pattern, :path], 'TokenRbacAuthenticationForm') @token = HttpClient::Preconditions.assert_class('token', opts.delete(:token), String) @method = HttpClient::Preconditions.assert_class('method', opts.delete(:method), String) @path_pattern = HttpClient::Preconditions.assert_class('path_pattern', opts.delete(:path_pattern), String) @path = HttpClient::Preconditions.assert_class('path', opts.delete(:path), String) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 71192 def copy(incoming={}) TokenRbacAuthenticationForm.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 71196 def to_hash { :token => token, :method => method, :path_pattern => path_pattern, :path => path } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 71188 def to_json JSON.dump(to_hash) end