Class: Jpmobile::TemplateDetails::Requested
- Inherits:
-
ActionView::TemplateDetails::Requested
- Object
- ActionView::TemplateDetails::Requested
- Jpmobile::TemplateDetails::Requested
- Defined in:
- lib/jpmobile/template_details.rb
Instance Attribute Summary collapse
-
#mobile ⇒ Object
readonly
Returns the value of attribute mobile.
-
#mobile_idx ⇒ Object
readonly
Returns the value of attribute mobile_idx.
Instance Method Summary collapse
-
#initialize(locale:, handlers:, formats:, variants:, mobile:) ⇒ Requested
constructor
A new instance of Requested.
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
#mobile ⇒ Object (readonly)
Returns the value of attribute mobile.
28 29 30 |
# File 'lib/jpmobile/template_details.rb', line 28 def mobile @mobile end |
#mobile_idx ⇒ Object (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 |