Class: Bcash::Item

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/bcash/item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Item

Returns a new instance of Item.



10
11
12
13
14
15
# File 'lib/bcash/item.rb', line 10

def initialize(attributes={})
	@id = attributes[:id]
	@description = attributes[:description]
	@amount = attributes[:amount]
	@price = attributes[:price]
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



5
6
7
# File 'lib/bcash/item.rb', line 5

def amount
  @amount
end

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'lib/bcash/item.rb', line 5

def description
  @description
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/bcash/item.rb', line 5

def id
  @id
end

#integrationObject

Returns the value of attribute integration.



5
6
7
# File 'lib/bcash/item.rb', line 5

def integration
  @integration
end

#priceObject

Returns the value of attribute price.



5
6
7
# File 'lib/bcash/item.rb', line 5

def price
  @price
end

#shipping_costObject

Returns the value of attribute shipping_cost.



5
6
7
# File 'lib/bcash/item.rb', line 5

def shipping_cost
  @shipping_cost
end