Class: Rafflesia::DatasetSourceSnapshotArtifactProfile
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetSourceSnapshotArtifactProfile
- 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
-
#allowed_hosts ⇒ Object
Returns the value of attribute allowed_hosts.
-
#allowed_path_prefixes ⇒ Object
Returns the value of attribute allowed_path_prefixes.
-
#artifact_kind ⇒ Object
Returns the value of attribute artifact_kind.
-
#compression ⇒ Object
Returns the value of attribute compression.
-
#consumer_object_field ⇒ Object
Returns the value of attribute consumer_object_field.
-
#consumer_parameters ⇒ Object
Returns the value of attribute consumer_parameters.
-
#consumer_primitive ⇒ Object
Returns the value of attribute consumer_primitive.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#description ⇒ Object
Returns the value of attribute description.
-
#example_url ⇒ Object
Returns the value of attribute example_url.
-
#expected_relation ⇒ Object
Returns the value of attribute expected_relation.
-
#format ⇒ Object
Returns the value of attribute format.
-
#parser ⇒ Object
Returns the value of attribute parser.
-
#recommended_import_mode ⇒ Object
Returns the value of attribute recommended_import_mode.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetSourceSnapshotArtifactProfile
constructor
A new instance of DatasetSourceSnapshotArtifactProfile.
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_hosts ⇒ Object
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_prefixes ⇒ Object
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_kind ⇒ Object
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 |
#compression ⇒ Object
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_field ⇒ Object
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_parameters ⇒ Object
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_primitive ⇒ Object
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_type ⇒ Object
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 |
#description ⇒ Object
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_url ⇒ Object
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_relation ⇒ Object
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 |
#format ⇒ Object
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 |
#parser ⇒ Object
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 |
#recommended_import_mode ⇒ Object
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 |