Class: Rafflesia::DatasetSourceSnapshotArtifactProfile

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

Constant Summary collapse

HASH_ATTRS =
{
  allowed_hosts: :allowed_hosts,
  allowed_path_prefixes: :allowed_path_prefixes,
  artifact_kind: :artifact_kind,
  compression: :compression,
  consumer_object_field: :consumer_object_field,
  consumer_parameters: :consumer_parameters,
  consumer_primitive: :consumer_primitive,
  content_type: :content_type,
  description: :description,
  example_url: :example_url,
  expected_relation: :expected_relation,
  format: :format,
  parser: :parser,
  recommended_import_mode: :recommended_import_mode
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatasetSourceSnapshotArtifactProfile

Returns a new instance of DatasetSourceSnapshotArtifactProfile.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 41

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @allowed_hosts = (hash[:allowed_hosts] || [])
  @allowed_path_prefixes = (hash[:allowed_path_prefixes] || [])
  @artifact_kind = hash[:artifact_kind]
  @compression = hash[:compression]
  @consumer_object_field = hash[:consumer_object_field]
  @consumer_parameters = hash[:consumer_parameters] || {}
  @consumer_primitive = hash[:consumer_primitive]
  @content_type = hash[:content_type]
  @description = hash[:description]
  @example_url = hash[:example_url]
  @expected_relation = hash[:expected_relation]
  @format = hash[:format]
  @parser = hash[:parser]
  @recommended_import_mode = hash[:recommended_import_mode]
end

Instance Attribute Details

#allowed_hostsObject

Returns the value of attribute allowed_hosts.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def allowed_hosts
  @allowed_hosts
end

#allowed_path_prefixesObject

Returns the value of attribute allowed_path_prefixes.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def allowed_path_prefixes
  @allowed_path_prefixes
end

#artifact_kindObject

Returns the value of attribute artifact_kind.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def artifact_kind
  @artifact_kind
end

#compressionObject

Returns the value of attribute compression.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def compression
  @compression
end

#consumer_object_fieldObject

Returns the value of attribute consumer_object_field.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def consumer_object_field
  @consumer_object_field
end

#consumer_parametersObject

Returns the value of attribute consumer_parameters.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def consumer_parameters
  @consumer_parameters
end

#consumer_primitiveObject

Returns the value of attribute consumer_primitive.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def consumer_primitive
  @consumer_primitive
end

#content_typeObject

Returns the value of attribute content_type.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def content_type
  @content_type
end

#descriptionObject

Returns the value of attribute description.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def description
  @description
end

#example_urlObject

Returns the value of attribute example_url.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def example_url
  @example_url
end

#expected_relationObject

Returns the value of attribute expected_relation.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def expected_relation
  @expected_relation
end

#formatObject

Returns the value of attribute format.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def format
  @format
end

#parserObject

Returns the value of attribute parser.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def parser
  @parser
end

Returns the value of attribute recommended_import_mode.



25
26
27
# File 'lib/rafflesia/datasets/dataset_source_snapshot_artifact_profile.rb', line 25

def recommended_import_mode
  @recommended_import_mode
end