e4commerce 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4784f444218d32569e651ca4f4574d18a6d68ec8
4
- data.tar.gz: 6e4516840a78f91402c16aafcee057478b5a43c3
3
+ metadata.gz: e18a88737c150b4c87a2fa4da66c8a25a5cab804
4
+ data.tar.gz: ecf67733aedaa904b2130f0c7f13b8f066b90257
5
5
  SHA512:
6
- metadata.gz: f7be43a2148a95b9f2bed717717df6456c7e63bdf76c2cc21f1fda4960af89639de2ed0193de058f596603b7aea8547faf0e3ff84f321a5f3d3138acc7c957cd
7
- data.tar.gz: eb13b9194a8a22277328cf58f192f8de49134792ec4cd0161e1d2b7d2f8c182d8e4f7bff24a6fda8c50fe5217444630bf703fa32de0121cd52cbc57ee4ac44c5
6
+ metadata.gz: c084ebe2efe13d6121c4b4f55eb2a1140dce79fbfa1c0da84848d174ce4f550204cafdfa07bad8145028073b545e4f1ad23a8c1316d85abaa527b04f9878b561
7
+ data.tar.gz: d92b197892b9759745e5cf727df1cf2eff920405d160da56fc33199ba215fd6e8294240e6108b5e04d6de6fe5047d0075a8f569663d801cdd2aa533e91d3687d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- e4commerce (0.3.0)
4
+ e4commerce (0.3.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/e4commerce.rb CHANGED
@@ -2,10 +2,5 @@ require "e4commerce/version"
2
2
 
3
3
  module E4commerce
4
4
 
5
- class PagSeguroPayment < ApplicationController
6
5
 
7
- def test
8
- print("Nois")
9
- end
10
-
11
6
  end
@@ -1,23 +1,27 @@
1
+ module E4commerce
2
+
1
3
  require "abstraction"
2
4
  require "active_record"
3
5
 
4
- #class E4CPayment < ActiveRecord::Base ~> Rails project, need database
5
- class E4CPayment
6
- abstract
6
+ #class E4CPayment < ActiveRecord::Base ~> Rails project, need database
7
+ class E4CPayment
8
+ abstract
7
9
 
8
- attr_accessor :product_list
9
- attr_accessor :total
10
+ attr_accessor :product_list
11
+ attr_accessor :total
10
12
 
11
- def calculate_total(products)
12
- raise NotImplementedError, "Child must implement method"
13
- end
13
+ def calculate_total(products)
14
+ raise NotImplementedError, "Child must implement method"
15
+ end
14
16
 
15
- def create_payment
16
- raise NotImplementedError, "Child must implement method"
17
- end
17
+ def create_payment
18
+ raise NotImplementedError, "Child must implement method"
19
+ end
20
+
21
+ def add_product(product)
22
+ raise NotImplementedError, "Child must implement method"
23
+ end
18
24
 
19
- def add_product(product)
20
- raise NotImplementedError, "Child must implement method"
21
25
  end
22
26
 
23
27
  end
@@ -1,20 +1,23 @@
1
- require "abstraction"
2
- require "active_record"
1
+ module E4commerce
3
2
 
4
- # class E4CProduct < ActiveRecord::Base -> Rails project, need database
5
- class E4CProduct
6
- abstract
3
+ require "abstraction"
4
+ require "active_record"
7
5
 
8
- attr_accessor :title
9
- attr_accessor :serial_number
10
- attr_accessor :brand
11
- attr_accessor :unit_price
6
+ # class E4CProduct < ActiveRecord::Base -> Rails project, need database
7
+ class E4CProduct
8
+ abstract
12
9
 
13
- def initialize(title, serial_number, brand, unit_price)
14
- @title = title
15
- @serial_number = serial_number
16
- @brand = brand
17
- @unit_price = unit_price
10
+ attr_accessor :title
11
+ attr_accessor :serial_number
12
+ attr_accessor :brand
13
+ attr_accessor :unit_price
14
+
15
+ def initialize(title, serial_number, brand, unit_price)
16
+ @title = title
17
+ @serial_number = serial_number
18
+ @brand = brand
19
+ @unit_price = unit_price
20
+ end
18
21
  end
19
22
 
20
23
  end
@@ -1,3 +1,3 @@
1
1
  module E4commerce
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: e4commerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Pimentel