accounts_client 0.2.34 → 0.2.35

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: fd5c26c6c4e72b9bd3f86eeb585b9447075fb179
4
- data.tar.gz: 228314e0d9a34ff3716a89cb2861d24c14dd8556
3
+ metadata.gz: 39188c7bb4d4d49d771fbf8c18d148ef1b096fa6
4
+ data.tar.gz: ac100f0a32e112e6ad5dd59f7d794eecff4b7c49
5
5
  SHA512:
6
- metadata.gz: a7c216e4030102c53ee0840ab5165c6325e9c704c5a9f3cb0701bb14f2cdda32088128fd315cd76c8ab43d9beb054b08feaf1cb1f9fb1dfe9b8d8c3b859ecdab
7
- data.tar.gz: ba388416ae20f9485cd2f6412dcba912519d70d04ba6dfcf52bbd0236dbfc3765df6694b33fb8fb923e453d12eb16d480542c1d957c9b3716fd1570af587fd5f
6
+ metadata.gz: 82c6edc040873f19f976272263a8c1f38facfb9a1454adeb05a9c0002c6556be4b61087ddc7b0b29f92c901e324631e82d87705294ec01dd2adbf063c6d4f72a
7
+ data.tar.gz: 1b6e90ae32f75ca7171256086a5c31560b9e765bd77220979c4ced9391fe1d08adb327e836131a03173a9ac1ebb9737e7918cac06e0ec518bb198370e8162c65
@@ -3,6 +3,7 @@ class ApiKey < LogicalModel
3
3
  set_resource_host Accounts::HOST
4
4
  set_resource_path "/v0/api_keys"
5
5
 
6
+ attribute :username
6
7
  attribute :account_name
7
8
  attribute :access
8
9
 
@@ -56,12 +56,12 @@ module Accounts
56
56
  # Returns CSV options associated with this user from PADMA ACCOUNTS
57
57
  #
58
58
  # @return [Hash]
59
- def csv_options
59
+ def csv_options(override_options={})
60
60
  options = CSV_DEFAULTS.clone
61
61
  options[:col_sep] = self.padma.try :separator
62
62
  options[:encoding] = self.padma.try :encoding
63
63
 
64
- return options
64
+ return options.merge(override_options.to_hash.symbolize_keys!)
65
65
  end
66
66
 
67
67
  def encoding
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: accounts_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.34
4
+ version: 0.2.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-26 00:00:00.000000000 Z
11
+ date: 2018-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties