Class: ContentDataProcessor
- Inherits:
-
Object
- Object
- ContentDataProcessor
- Defined in:
- lib/contentar/data_processors/content.rb
Instance Attribute Summary collapse
-
#json_data ⇒ Object
readonly
Returns the value of attribute json_data.
-
#parsed_data ⇒ Object
readonly
Returns the value of attribute parsed_data.
Instance Method Summary collapse
Instance Attribute Details
#json_data ⇒ Object (readonly)
Returns the value of attribute json_data.
2 3 4 |
# File 'lib/contentar/data_processors/content.rb', line 2 def json_data @json_data end |
#parsed_data ⇒ Object (readonly)
Returns the value of attribute parsed_data.
2 3 4 |
# File 'lib/contentar/data_processors/content.rb', line 2 def parsed_data @parsed_data end |
Instance Method Details
#data(json_data) ⇒ Object
4 5 6 7 8 |
# File 'lib/contentar/data_processors/content.rb', line 4 def data(json_data) @json_data = json_data @parsed_data = parse_data process end |