Class: BellyWash::Resource
- Inherits:
-
Object
- Object
- BellyWash::Resource
- Includes:
- Mixins::Packer
- Defined in:
- lib/belly_wash/resource.rb
Instance Attribute Summary collapse
-
#at ⇒ Object
Returns the value of attribute at.
-
#key ⇒ Object
Returns the value of attribute key.
-
#range ⇒ Object
Returns the value of attribute range.
Instance Method Summary collapse
- #full_key ⇒ Object
- #increment(**values) ⇒ Object
-
#initialize(key:, range:, at:) ⇒ Resource
constructor
A new instance of Resource.
- #values ⇒ Object
Methods included from Mixins::Packer
Constructor Details
#initialize(key:, range:, at:) ⇒ Resource
Returns a new instance of Resource.
8 9 10 11 12 |
# File 'lib/belly_wash/resource.rb', line 8 def initialize(key:, range:, at:) @key = key @range = range @at = at end |
Instance Attribute Details
#at ⇒ Object
Returns the value of attribute at.
6 7 8 |
# File 'lib/belly_wash/resource.rb', line 6 def at @at end |
#key ⇒ Object
Returns the value of attribute key.
6 7 8 |
# File 'lib/belly_wash/resource.rb', line 6 def key @key end |
#range ⇒ Object
Returns the value of attribute range.
6 7 8 |
# File 'lib/belly_wash/resource.rb', line 6 def range @range end |
Instance Method Details
#full_key ⇒ Object
14 15 16 |
# File 'lib/belly_wash/resource.rb', line 14 def full_key [key, range, at.to_i].join(BellyWash.config.separator) end |