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

#app_dataHash

Returns app attributes (unprefixed).

Returns:

  • (Hash)

    app attributes (unprefixed)



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

param :app_data, reader: :private, default: -> { {} }

#shopify_dataHash

Returns shop attributes as returned by the Shopify API.

Returns:

  • (Hash)

    shop attributes as returned by the Shopify API



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

param :shopify_data, reader: :private

#to_h(convert: Container[:convert]) ⇒ Hash

This method is abstract.

Parameters:

  • convert (#call) (defaults to: Container[:convert])

Returns:

  • (Hash)


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

def to_h(convert: Container[:convert])
  convert.({})
end