Class: ExCite::PushFormat
- Inherits:
-
Object
- Object
- ExCite::PushFormat
- Defined in:
- app/models/ex_cite/push_format.rb
Overview
Citation class, holds data from format and/or resource key
Instance Attribute Summary collapse
-
#action ⇒ Object
Required fields.
-
#callback_protocol ⇒ Object
Required fields.
-
#element_name ⇒ Object
Required fields.
-
#enctype ⇒ Object
Required fields.
-
#method ⇒ Object
Required fields.
-
#name ⇒ Object
Required fields.
-
#template ⇒ Object
Required fields.
-
#to_format ⇒ Object
Required fields.
-
#url ⇒ Object
Required fields.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ PushFormat
constructor
A new instance of PushFormat.
Constructor Details
#initialize(args = {}) ⇒ PushFormat
Returns a new instance of PushFormat.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/models/ex_cite/push_format.rb', line 7 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 |
Instance Attribute Details
#action ⇒ Object
Required fields
5 6 7 |
# File 'app/models/ex_cite/push_format.rb', line 5 def action @action end |
#callback_protocol ⇒ Object
Required fields
5 6 7 |
# File 'app/models/ex_cite/push_format.rb', line 5 def callback_protocol @callback_protocol end |
#element_name ⇒ Object
Required fields
5 6 7 |
# File 'app/models/ex_cite/push_format.rb', line 5 def element_name @element_name end |
#enctype ⇒ Object
Required fields
5 6 7 |
# File 'app/models/ex_cite/push_format.rb', line 5 def enctype @enctype end |
#method ⇒ Object
Required fields
5 6 7 |
# File 'app/models/ex_cite/push_format.rb', line 5 def method @method end |
#name ⇒ Object
Required fields
5 6 7 |
# File 'app/models/ex_cite/push_format.rb', line 5 def name @name end |
#template ⇒ Object
Required fields
5 6 7 |
# File 'app/models/ex_cite/push_format.rb', line 5 def template @template end |
#to_format ⇒ Object
Required fields
5 6 7 |
# File 'app/models/ex_cite/push_format.rb', line 5 def to_format @to_format end |
#url ⇒ Object
Required fields
5 6 7 |
# File 'app/models/ex_cite/push_format.rb', line 5 def url @url end |