Class: TreeHaver::TreeHaverProfile
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::TreeHaverProfile
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#backend_ref ⇒ Object
Returns the value of attribute backend_ref.
-
#capability ⇒ Object
Returns the value of attribute capability.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#fixture_slices ⇒ Object
Returns the value of attribute fixture_slices.
-
#language ⇒ Object
Returns the value of attribute language.
-
#node_roles ⇒ Object
Returns the value of attribute node_roles.
-
#normalized_node_fields ⇒ Object
Returns the value of attribute normalized_node_fields.
-
#optional_node_features ⇒ Object
Returns the value of attribute optional_node_features.
-
#profile_id ⇒ Object
Returns the value of attribute profile_id.
-
#provider_id ⇒ Object
Returns the value of attribute provider_id.
-
#unsupported_defaults ⇒ Object
Returns the value of attribute unsupported_defaults.
Instance Method Summary collapse
Instance Attribute Details
#backend_ref ⇒ Object
Returns the value of attribute backend_ref
217 218 219 |
# File 'lib/tree_haver/contracts.rb', line 217 def backend_ref @backend_ref end |
#capability ⇒ Object
Returns the value of attribute capability
217 218 219 |
# File 'lib/tree_haver/contracts.rb', line 217 def capability @capability end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
217 218 219 |
# File 'lib/tree_haver/contracts.rb', line 217 def diagnostics @diagnostics end |
#fixture_slices ⇒ Object
Returns the value of attribute fixture_slices
217 218 219 |
# File 'lib/tree_haver/contracts.rb', line 217 def fixture_slices @fixture_slices end |
#language ⇒ Object
Returns the value of attribute language
217 218 219 |
# File 'lib/tree_haver/contracts.rb', line 217 def language @language end |
#node_roles ⇒ Object
Returns the value of attribute node_roles
217 218 219 |
# File 'lib/tree_haver/contracts.rb', line 217 def node_roles @node_roles end |
#normalized_node_fields ⇒ Object
Returns the value of attribute normalized_node_fields
217 218 219 |
# File 'lib/tree_haver/contracts.rb', line 217 def normalized_node_fields @normalized_node_fields end |
#optional_node_features ⇒ Object
Returns the value of attribute optional_node_features
217 218 219 |
# File 'lib/tree_haver/contracts.rb', line 217 def optional_node_features @optional_node_features end |
#profile_id ⇒ Object
Returns the value of attribute profile_id
217 218 219 |
# File 'lib/tree_haver/contracts.rb', line 217 def profile_id @profile_id end |
#provider_id ⇒ Object
Returns the value of attribute provider_id
217 218 219 |
# File 'lib/tree_haver/contracts.rb', line 217 def provider_id @provider_id end |
#unsupported_defaults ⇒ Object
Returns the value of attribute unsupported_defaults
217 218 219 |
# File 'lib/tree_haver/contracts.rb', line 217 def unsupported_defaults @unsupported_defaults end |
Instance Method Details
#to_h ⇒ Object
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/tree_haver/contracts.rb', line 231 def to_h { profile_id: profile_id, language: language, backend_ref: backend_ref.to_h, provider_id: provider_id, node_roles: node_roles || [], normalized_node_fields: normalized_node_fields || [], optional_node_features: optional_node_features || [], unsupported_defaults: unsupported_defaults || {}, capability: capability.to_h, fixture_slices: fixture_slices || [], diagnostics: diagnostics || [] } end |