Sha256: c042d8e0f642577aeee97751d89f095473b1bbba0eae0d00d5503e71eb50720a

Contents?: true

Size: 673 Bytes

Versions: 1

Compression:

Stored size: 673 Bytes

Contents

module ExCite
  # Citation class, holds data from format and/or resource key
  class PushFormat
    # Required fields
    attr_accessor :name, :to_format, :action, :template, :url, :method, :enctype, :element_name
    def initialize args = {}
      self.name = (args[:name] or 'Service')
      self.to_format = args[:to_format]
      self.action = (args[:action] or :render)
      self.template = (args[:template] or "ex_cite/cite/external_form")
      self.url = args[:url]
      self.method = (args[:method] or "POST")
      self.enctype = (args[:enctype] or "application/x-www-form-urlencoded")
      self.element_name = (args[:element_name] or "data")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ex_cite-1.1.0 app/models/ex_cite/push_format.rb