Class: SocialDataProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/contentar/data_processors/social.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#json_dataObject (readonly)

Returns the value of attribute json_data.



2
3
4
# File 'lib/contentar/data_processors/social.rb', line 2

def json_data
  @json_data
end

#statsObject (readonly)

Returns the value of attribute stats.



2
3
4
# File 'lib/contentar/data_processors/social.rb', line 2

def stats
  @stats
end

Instance Method Details

#data(json_data) ⇒ Object



4
5
6
7
8
# File 'lib/contentar/data_processors/social.rb', line 4

def data(json_data)
  @json_data = json_data
  @stats     = get_stats
  process
end