Module: Jpmobile::HookTemplateDetailsRequested

Defined in:
lib/jpmobile/hook_template_details_requested.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#mobileObject (readonly)

Returns the value of attribute mobile.



3
4
5
# File 'lib/jpmobile/hook_template_details_requested.rb', line 3

def mobile
  @mobile
end

#mobile_idxObject (readonly)

Returns the value of attribute mobile_idx.



3
4
5
# File 'lib/jpmobile/hook_template_details_requested.rb', line 3

def mobile_idx
  @mobile_idx
end

Instance Method Details

#initialize(locale:, handlers:, formats:, variants:, mobile:) ⇒ Object



5
6
7
8
9
10
# File 'lib/jpmobile/hook_template_details_requested.rb', line 5

def initialize(locale:, handlers:, formats:, variants:, mobile:)
  super(locale:, handlers:, formats:, variants:)

  @mobile = mobile.map(&:to_sym)
  @mobile_idx = build_idx_hash(@mobile)
end