class Yaks::Resource::Form
Public Instance Methods
[](name)
click to toggle source
# File lib/yaks/resource/form.rb, line 7 def [](name) fields.find {|field| field.name.equal? name}.value end
has_action?()
click to toggle source
# File lib/yaks/resource/form.rb, line 21 def has_action? # rubocop:disable Style/PredicateName !action.nil? end
method?(meth)
click to toggle source
# File lib/yaks/resource/form.rb, line 17 def method?(meth) !method.nil? && method.downcase.to_sym == meth.downcase.to_sym end
values()
click to toggle source
# File lib/yaks/resource/form.rb, line 11 def values fields_flat.each_with_object({}) do |field, values| values[field.name] = field.value end end