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