Class: Miniswen::Agent::CostSource
- Inherits:
-
Data
- Object
- Data
- Miniswen::Agent::CostSource
- Defined in:
- lib/miniswen/agent.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#priced_as ⇒ Object
readonly
Returns the value of attribute priced_as.
-
#registry ⇒ Object
readonly
Returns the value of attribute registry.
Instance Method Summary collapse
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model
204 205 206 |
# File 'lib/miniswen/agent.rb', line 204 def model @model end |
#name ⇒ Object (readonly)
Returns the value of attribute name
204 205 206 |
# File 'lib/miniswen/agent.rb', line 204 def name @name end |
#priced_as ⇒ Object (readonly)
Returns the value of attribute priced_as
204 205 206 |
# File 'lib/miniswen/agent.rb', line 204 def priced_as @priced_as end |
#registry ⇒ Object (readonly)
Returns the value of attribute registry
204 205 206 |
# File 'lib/miniswen/agent.rb', line 204 def registry @registry end |
Instance Method Details
#to_h ⇒ Object
205 |
# File 'lib/miniswen/agent.rb', line 205 def to_h = { name: name, model: model, priced_as: priced_as, registry: registry }.compact |