Class: SallieMaeGateway::LineItem
- Inherits:
-
Object
- Object
- SallieMaeGateway::LineItem
- Defined in:
- app/models/sallie_mae_gateway/line_item.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#description ⇒ Object
Returns the value of attribute description.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(args) ⇒ LineItem
constructor
A new instance of LineItem.
Constructor Details
#initialize(args) ⇒ LineItem
Returns a new instance of LineItem.
5 6 7 8 9 |
# File 'app/models/sallie_mae_gateway/line_item.rb', line 5 def initialize(args) args.each { |key, value| instance_variable_set "@#{key}", value } if args.is_a? Hash end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
3 4 5 |
# File 'app/models/sallie_mae_gateway/line_item.rb', line 3 def amount @amount end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'app/models/sallie_mae_gateway/line_item.rb', line 3 def description @description end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'app/models/sallie_mae_gateway/line_item.rb', line 3 def type @type end |