Module: Insuggest::Discount
- Defined in:
- lib/insuggest/discount.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/insuggest/discount.rb', line 3 def attributes @attributes end |
Class Method Details
.included(base) ⇒ Object
86 87 88 |
# File 'lib/insuggest/discount.rb', line 86 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize(attributes = {}) ⇒ Object
5 6 7 |
# File 'lib/insuggest/discount.rb', line 5 def initialize(attributes={}) @attributes = attributes end |
#to_hash ⇒ Object
9 10 11 |
# File 'lib/insuggest/discount.rb', line 9 def to_hash @attributes end |