Class: Hibp::Parsers::Paste
Overview
Hibp::Parsers::Paste
Used to convert raw API response data to the array of the paste entities
Instance Method Summary collapse
-
#parse_response(response) ⇒ Array<Hibp::Paste>
Convert raw data to the pastes entities.
Instance Method Details
#parse_response(response) ⇒ Array<Hibp::Paste>
Convert raw data to the pastes entities
19 20 21 |
# File 'lib/hibp/parsers/paste.rb', line 19 def parse_response(response) super(response) { |attributes| Models::Paste.new(attributes) } end |