Class: Rafflesia::CatalogViewData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/registry/catalog_view_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  view: :view
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#viewObject

Returns the value of attribute view.



12
13
14
# File 'lib/rafflesia/registry/catalog_view_data.rb', line 12

def view
  @view
end