class NekosLife::EightBallResponse

A response from the 8ball endpoint

Attributes

image_url[R]

@return [String] the response in image form.

text[R]

@return [String] the response in text form.

to_s[R]

@return [String] the response in text form.

Public Class Methods

new(data) click to toggle source

@!visibility private

# File lib/nekos.rb, line 148
def initialize(data)
  @text = data['response']
  @image_url = data['url']
end