Class: Klaviyo::Event::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/klaviyo/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#responseObject

Returns the value of attribute response

Returns:

  • (Object)

    the current value of response



5
6
7
# File 'lib/klaviyo/event.rb', line 5

def response
  @response
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/klaviyo/event.rb', line 6

def success?
  response.to_s == '1'
end