AccountGem 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/AccountGem.rb +26 -0
- metadata +46 -0
data/lib/AccountGem.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
class AccountGem
|
2
|
+
|
3
|
+
attr_accessor :num, :balance,:name
|
4
|
+
|
5
|
+
def initialize numr,nameA,income
|
6
|
+
puts "in AccountGem initialize "
|
7
|
+
@num= numr
|
8
|
+
@name= nameA
|
9
|
+
@balance = income
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
def depositAccount num, amount
|
14
|
+
puts "depositAccount for #{num} with #{amount}"
|
15
|
+
|
16
|
+
@balance+=amount
|
17
|
+
|
18
|
+
end
|
19
|
+
|
20
|
+
def withDrawAmount num, amount
|
21
|
+
puts "withDrawAmount for #{num} with #{amount}"
|
22
|
+
@balance-=amount
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: AccountGem
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Prakash Badhe
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-12-07 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: A Ruby library to generate clever dummy data
|
15
|
+
email:
|
16
|
+
- vishwasoft@yahoo.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- lib/AccountGem.rb
|
22
|
+
homepage: http://github.com/vihwa/MyGem
|
23
|
+
licenses: []
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
none: false
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 1.8.23
|
40
|
+
requirements: []
|
41
|
+
rubyforge_project: AccountGem
|
42
|
+
rubygems_version: 1.8.23
|
43
|
+
signing_key:
|
44
|
+
specification_version: 3
|
45
|
+
summary: Generates dummy data
|
46
|
+
test_files: []
|