Class: SallieMaeGateway::LineItem

Inherits:
Object
  • Object
show all
Defined in:
app/models/sallie_mae_gateway/line_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject

Returns the value of attribute amount.



3
4
5
# File 'app/models/sallie_mae_gateway/line_item.rb', line 3

def amount
  @amount
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'app/models/sallie_mae_gateway/line_item.rb', line 3

def description
  @description
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'app/models/sallie_mae_gateway/line_item.rb', line 3

def type
  @type
end