Sha256: d3032703bc7fd78e4b26d3f93bb62416331618eedc9608c17e097e13ff1003db

Contents?: true

Size: 792 Bytes

Versions: 13

Compression:

Stored size: 792 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, :callback_protocol
    alias :protocol= :callback_protocol=
    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")
      self.callback_protocol = (args[:protocol] or :http)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ex_cite-2.1.0 app/models/ex_cite/push_format.rb
ex_cite-2.0.0 app/models/ex_cite/push_format.rb
ex_cite-2.0.0.pre.alpha.1 app/models/ex_cite/push_format.rb
ex_cite-2.0.0.pre.alpha app/models/ex_cite/push_format.rb
ex_cite-1.3.2 app/models/ex_cite/push_format.rb
ex_cite-1.3.1 app/models/ex_cite/push_format.rb
ex_cite-1.3.0 app/models/ex_cite/push_format.rb
ex_cite-1.2.7 app/models/ex_cite/push_format.rb
ex_cite-1.2.6 app/models/ex_cite/push_format.rb
ex_cite-1.2.5 app/models/ex_cite/push_format.rb
ex_cite-1.2.4 app/models/ex_cite/push_format.rb
ex_cite-1.2.3 app/models/ex_cite/push_format.rb
ex_cite-1.2.2 app/models/ex_cite/push_format.rb