Module: TradeTracker::Concerns::Conversion
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/trade_tracker/concerns/conversion.rb
Instance Attribute Summary collapse
-
#conversion_image_parameters ⇒ Object
readonly
Returns the value of attribute conversion_image_parameters.
Instance Method Summary collapse
- #conversion_image_tag ⇒ Object
- #send_conversion_to_tradetracker ⇒ Object
- #set_conversion_image_parameters(parameters = {}) ⇒ Object
Instance Attribute Details
#conversion_image_parameters ⇒ Object (readonly)
Returns the value of attribute conversion_image_parameters.
7 8 9 |
# File 'lib/trade_tracker/concerns/conversion.rb', line 7 def conversion_image_parameters @conversion_image_parameters end |
Instance Method Details
#conversion_image_tag ⇒ Object
13 14 15 16 17 |
# File 'lib/trade_tracker/concerns/conversion.rb', line 13 def conversion_image_tag parameters = default_parameters.merge conversion_image_parameters url = tradetracker_conversion_path parameters ('<img src="%s" width="1" height="1" border="0" alt="" />' % url).html_safe end |
#send_conversion_to_tradetracker ⇒ Object
19 20 21 |
# File 'lib/trade_tracker/concerns/conversion.rb', line 19 def send_conversion_to_tradetracker redirect_to tradetracker_conversion.trackback_url end |
#set_conversion_image_parameters(parameters = {}) ⇒ Object
23 24 25 |
# File 'lib/trade_tracker/concerns/conversion.rb', line 23 def set_conversion_image_parameters(parameters = {}) @conversion_image_parameters = parameters end |