class Io::Flow::V0::Models::PermittedHttpMethod
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24984 def PermittedHttpMethod.ALL @@all ||= [PermittedHttpMethod.get, PermittedHttpMethod.post, PermittedHttpMethod.put, PermittedHttpMethod.delete, PermittedHttpMethod.patch] end
apply(value)
click to toggle source
Returns the instance of PermittedHttpMethod
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 24969 def PermittedHttpMethod.apply(value) if value.instance_of?(PermittedHttpMethod) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || PermittedHttpMethod.new(value)) end end
delete()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25000 def PermittedHttpMethod.delete @@_delete ||= PermittedHttpMethod.new('DELETE') end
from_string(value)
click to toggle source
Returns the instance of PermittedHttpMethod
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 24979 def PermittedHttpMethod.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) PermittedHttpMethod.ALL.find { |v| v.value == value } end
get()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24988 def PermittedHttpMethod.get @@_get ||= PermittedHttpMethod.new('GET') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24964 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
patch()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25004 def PermittedHttpMethod.patch @@_patch ||= PermittedHttpMethod.new('PATCH') end
post()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24992 def PermittedHttpMethod.post @@_post ||= PermittedHttpMethod.new('POST') end
put()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24996 def PermittedHttpMethod.put @@_put ||= PermittedHttpMethod.new('PUT') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25008 def to_hash value end