Method: SocialDataGetter#initialize
- Defined in:
- lib/contentar/data_getters/social.rb
#initialize(url) ⇒ SocialDataGetter
Returns a new instance of SocialDataGetter.
2 3 4 5 6 7 8 |
# File 'lib/contentar/data_getters/social.rb', line 2 def initialize(url) @url = url @processor = SocialDataProcessor.new @api_call = 'social' @values = { 'async' => false, 'data' => { 'url' => url } }.to_json super end |