class ShafClient::ShafForm

Public Instance Methods

content_type() click to toggle source
# File lib/shaf_client/shaf_form.rb, line 25
def content_type
  attribute(:type)
end
fields() click to toggle source
# File lib/shaf_client/shaf_form.rb, line 29
def fields
  attribute(:fields).map do |values|
    Field.new(**values.transform_keys(&:to_sym))
  end
end
http_method() click to toggle source
# File lib/shaf_client/shaf_form.rb, line 21
def http_method
  attribute(:method).downcase.to_sym
end
name() click to toggle source
# File lib/shaf_client/shaf_form.rb, line 13
def name
  attribute(:name)
end
target() click to toggle source
# File lib/shaf_client/shaf_form.rb, line 17
def target
  attribute(:href)
end
title() click to toggle source
# File lib/shaf_client/shaf_form.rb, line 9
def title
  attribute(:title)
end