Class: BBMB::Model::Quota
- Inherits:
-
Object
- Object
- BBMB::Model::Quota
- Includes:
- Util::Numbers, ODBA::Persistable
- Defined in:
- lib/bbmb/model/quota.rb,
lib/bbmb/persistence/odba/model/quota.rb
Instance Attribute Summary collapse
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#product ⇒ Object
readonly
Returns the value of attribute product.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(product) ⇒ Quota
constructor
A new instance of Quota.
Methods included from Util::Numbers
Constructor Details
#initialize(product) ⇒ Quota
Returns a new instance of Quota.
22 23 24 |
# File 'lib/bbmb/model/quota.rb', line 22 def initialize(product) @product = product end |
Instance Attribute Details
#end_date ⇒ Object
Returns the value of attribute end_date.
18 19 20 |
# File 'lib/bbmb/model/quota.rb', line 18 def end_date @end_date end |
#product ⇒ Object (readonly)
Returns the value of attribute product.
17 18 19 |
# File 'lib/bbmb/model/quota.rb', line 17 def product @product end |
#start_date ⇒ Object
Returns the value of attribute start_date.
18 19 20 |
# File 'lib/bbmb/model/quota.rb', line 18 def start_date @start_date end |
Class Method Details
.delegate(*keys) ⇒ Object
10 11 12 13 14 |
# File 'lib/bbmb/model/quota.rb', line 10 def delegate(*keys) keys.each { |key| define_method(key) { @product.send(key) } } end |