Class: Jpmobile::TemplateDetails::Requested

Inherits:
ActionView::TemplateDetails::Requested
  • Object
show all
Defined in:
lib/jpmobile/template_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Requested.



30
31
32
33
34
35
# File 'lib/jpmobile/template_details.rb', line 30

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

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

Instance Attribute Details

#mobileObject (readonly)

Returns the value of attribute mobile.



28
29
30
# File 'lib/jpmobile/template_details.rb', line 28

def mobile
  @mobile
end

#mobile_idxObject (readonly)

Returns the value of attribute mobile_idx.



28
29
30
# File 'lib/jpmobile/template_details.rb', line 28

def mobile_idx
  @mobile_idx
end