Class: Prevoty::FilterContent

Inherits:
Object
  • Object
show all
Defined in:
lib/prevoty/responses/filter_content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/prevoty/responses/filter_content.rb', line 3

def message
  @message
end

#outputObject (readonly)

Returns the value of attribute output.



3
4
5
# File 'lib/prevoty/responses/filter_content.rb', line 3

def output
  @output
end

#statisticsObject (readonly)

Returns the value of attribute statistics.



3
4
5
# File 'lib/prevoty/responses/filter_content.rb', line 3

def statistics
  @statistics
end