class Io::Flow::V0::Models::Method
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22578 def Method.ALL @@all ||= [Method.post] end
apply(value)
click to toggle source
Returns the instance of Method
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 22563 def Method.apply(value) if value.instance_of?(Method) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || Method.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of Method
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 22573 def Method.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) Method.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22558 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
post()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22582 def Method.post @@_post ||= Method.new('post') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22586 def to_hash value end