openbill-ruby 0.1.9 → 0.1.10

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: e426ce6297d3b3dc2b8d70e86fd26ca82e28ae51
4
- data.tar.gz: 6688d100ecfac9d3a86718595185a1e0674f065c
3
+ metadata.gz: 1e6652a8bf159b897cafbf2696f43515fcf41aa6
4
+ data.tar.gz: c35248bd384ee35a8ab5e374865145b33f92b281
5
5
  SHA512:
6
- metadata.gz: 31f1bfbf3c1ebf97dba300457baffce74ec3657b4cc1634222569ffa476255f2922d0ac9c7189ff97ad3cc89e766a06e512cc8aef4af7bfb56c279bef4b0ff54
7
- data.tar.gz: d9d9e8bc664a21e19836658176b1ab536780695b3c684f7ab2f77bc385b2f594ffc3edfa20d8516bc164a05b43d646fa2453020eb56ebadcabd646f5d0e6d329
6
+ metadata.gz: aebdd2e263542803b3d367f72d7e078e9d1f84b02a76edf87a61825a2861769c460c42702076cc7930dc7a6640ce1a8167ce457ca717e257cdc366f6e734f823
7
+ data.tar.gz: ef5ff4174d7b3815c6468820aec561d0e4f82dccc5c41670fb8439f3c8e7c9803ffe9a2569516563ef9e9ce9f2be172a4a748c67cd816b20543a98cd25680ea2
data/README.md CHANGED
@@ -94,6 +94,7 @@ Openbill.current.make_transaction(
94
94
 
95
95
  ## Development
96
96
 
97
+ Сброс миграции:
97
98
 
98
99
  > bundle exec rake db:migrate:down VERSION=20160320150928
99
100
 
@@ -47,6 +47,12 @@ module Openbill
47
47
  )
48
48
  end
49
49
 
50
+ def account_transactions(ident)
51
+ account = ident.is_a?(Openbill::Account) ? ident : get_account(ident)
52
+ Openbill::Transaction
53
+ .where('from_account_id = ? or to_account_id = ?', account.id, account.id)
54
+ end
55
+
50
56
  # @param key - уникальный текстовый ключ транзакции
51
57
  #
52
58
  def make_transaction(from:, to:, amount:, key:, details: , meta: {})
@@ -1,3 +1,3 @@
1
1
  module Openbill
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openbill-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danil Pismenny
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-29 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler