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
226 227 228 |
# File 'lib/miniswen/agent.rb', line 226 def model @model end |
#name ⇒ Object (readonly)
Returns the value of attribute name
226 227 228 |
# File 'lib/miniswen/agent.rb', line 226 def name @name end |
#priced_as ⇒ Object (readonly)
Returns the value of attribute priced_as
226 227 228 |
# File 'lib/miniswen/agent.rb', line 226 def priced_as @priced_as end |
#registry ⇒ Object (readonly)
Returns the value of attribute registry
226 227 228 |
# File 'lib/miniswen/agent.rb', line 226 def registry @registry end |
Instance Method Details
#to_h ⇒ Object
227 |
# File 'lib/miniswen/agent.rb', line 227 def to_h = { name: name, model: model, priced_as: priced_as, registry: registry }.compact |