class SuperLanding::API::Response::Base

Attributes

code[RW]
data[RW]
raw_data[RW]

Public Class Methods

new(raw_data, code) click to toggle source
# File lib/super_landing/api/response/base.rb, line 7
def initialize(raw_data, code)
  @raw_data = raw_data
  @code = code
  @data = JSON.parse(raw_data)
end

Public Instance Methods

auth?() click to toggle source
# File lib/super_landing/api/response/base.rb, line 13
def auth?
  code == 200
end