Class: Prevoty::FilterContent
- Inherits:
-
Object
- Object
- Prevoty::FilterContent
- Defined in:
- lib/prevoty/responses/filter_content.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#statistics ⇒ Object
readonly
Returns the value of attribute statistics.
Instance Method Summary collapse
-
#initialize(data) ⇒ FilterContent
constructor
A new instance of FilterContent.
Constructor Details
#initialize(data) ⇒ FilterContent
Returns a new instance of FilterContent.
5 6 7 8 9 |
# File 'lib/prevoty/responses/filter_content.rb', line 5 def initialize(data) @message = data["message"] @output = data["output"] @statistics = FilterStatistics.new(data["statistics"]) end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/prevoty/responses/filter_content.rb', line 3 def @message end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
3 4 5 |
# File 'lib/prevoty/responses/filter_content.rb', line 3 def output @output end |
#statistics ⇒ Object (readonly)
Returns the value of attribute statistics.
3 4 5 |
# File 'lib/prevoty/responses/filter_content.rb', line 3 def statistics @statistics end |