Method: Fetcher::Notion::Types::Response#initialize
- Defined in:
- lib/bns/fetcher/notion/types/response.rb
#initialize(response) ⇒ Response
Returns a new instance of Response.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/bns/fetcher/notion/types/response.rb', line 12 def initialize(response) if response["results"].nil? @status_code = response["status"] = response["message"] @results = [] else @status_code = 200 = "success" @results = response["results"] end end |