Class: LucidIntercom::Attributes

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/lucid_intercom/attributes.rb

Instance Method Summary collapse

Instance Method Details

#shopify_dataHash

Returns shop attributes as returned by the Shopify API.

Returns:

  • (Hash)

    shop attributes as returned by the Shopify API



12
# File 'lib/lucid_intercom/attributes.rb', line 12

param :shopify_data, reader: :private

#to_h(convert: Convert.new) ⇒ Hash

This method is abstract.

Parameters:

  • convert (#call) (defaults to: Convert.new)

Returns:

  • (Hash)


21
22
23
# File 'lib/lucid_intercom/attributes.rb', line 21

def to_h(convert: Convert.new)
  convert.({})
end