Class: Rafflesia::CatalogViewData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CatalogViewData
- Defined in:
- lib/rafflesia/registry/catalog_view_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ view: :view }.freeze
Instance Attribute Summary collapse
-
#view ⇒ Object
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(json) ⇒ CatalogViewData
constructor
A new instance of CatalogViewData.
Constructor Details
#initialize(json) ⇒ CatalogViewData
Returns a new instance of CatalogViewData.
14 15 16 17 18 |
# File 'lib/rafflesia/registry/catalog_view_data.rb', line 14 def initialize(json) super() hash = self.class.normalize(json) @view = hash[:view] ? Rafflesia::CatalogView.new(hash[:view]) : nil end |
Instance Attribute Details
#view ⇒ Object
Returns the value of attribute view.
12 13 14 |
# File 'lib/rafflesia/registry/catalog_view_data.rb', line 12 def view @view end |