Class: Miniswen::Agent::CostSource

Inherits:
Data
  • Object
show all
Defined in:
lib/miniswen/agent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



204
205
206
# File 'lib/miniswen/agent.rb', line 204

def model
  @model
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



204
205
206
# File 'lib/miniswen/agent.rb', line 204

def name
  @name
end

#priced_asObject (readonly)

Returns the value of attribute priced_as

Returns:

  • (Object)

    the current value of priced_as



204
205
206
# File 'lib/miniswen/agent.rb', line 204

def priced_as
  @priced_as
end

#registryObject (readonly)

Returns the value of attribute registry

Returns:

  • (Object)

    the current value of registry



204
205
206
# File 'lib/miniswen/agent.rb', line 204

def registry
  @registry
end

Instance Method Details

#to_hObject



205
# File 'lib/miniswen/agent.rb', line 205

def to_h = { name: name, model: model, priced_as: priced_as, registry: registry }.compact