class KlaviyoAPI::JsonFormatter

Attributes

collection_name[R]

Public Class Methods

new(collection_name) click to toggle source
# File lib/klaviyo_api/json_formatter.rb, line 9
def initialize(collection_name)
  @collection_name = collection_name.to_s
end

Public Instance Methods

decode(json) click to toggle source
# File lib/klaviyo_api/json_formatter.rb, line 13
def decode(json)
  ActiveSupport::JSON.decode json.presence
end