Class: Backstage::DashboardConfig
- Inherits:
-
Object
- Object
- Backstage::DashboardConfig
- Defined in:
- lib/backstage/dashboard_config.rb
Instance Attribute Summary collapse
-
#model_name ⇒ Object
readonly
Returns the value of attribute model_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(hash) ⇒ DashboardConfig
constructor
A new instance of DashboardConfig.
- #resource_config ⇒ Object
Constructor Details
#initialize(hash) ⇒ DashboardConfig
Returns a new instance of DashboardConfig.
5 6 7 8 9 |
# File 'lib/backstage/dashboard_config.rb', line 5 def initialize(hash) @name = hash["name"] @model_name = hash["model"] @scope = hash["scope"] || {} end |
Instance Attribute Details
#model_name ⇒ Object (readonly)
Returns the value of attribute model_name.
3 4 5 |
# File 'lib/backstage/dashboard_config.rb', line 3 def model_name @model_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/backstage/dashboard_config.rb', line 3 def name @name end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
3 4 5 |
# File 'lib/backstage/dashboard_config.rb', line 3 def scope @scope end |