Class: Rafflesia::DatasetSourceSnapshotProfileListData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/dataset_source_snapshot_profile_list_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  profiles: :profiles
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#profilesObject

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