Class: BBMB::Model::Quota

Inherits:
Object
  • Object
show all
Includes:
Util::Numbers, ODBA::Persistable
Defined in:
lib/bbmb/model/quota.rb,
lib/bbmb/persistence/odba/model/quota.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Util::Numbers

append_features

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_dateObject

Returns the value of attribute end_date.



18
19
20
# File 'lib/bbmb/model/quota.rb', line 18

def end_date
  @end_date
end

#productObject (readonly)

Returns the value of attribute product.



17
18
19
# File 'lib/bbmb/model/quota.rb', line 17

def product
  @product
end

#start_dateObject

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