sensei_eod_statistics_ruby 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92e9c86d274557e7514c8f5fabbad6e39b434fa13fdd75b122b8936a1a3094bc
4
- data.tar.gz: 63390ff408e05b9eab2057aed05e2c4745ca016b4e7799309359fbf44c09d7e3
3
+ metadata.gz: 8ec7cefed956832d39d0423c5925ee39dcb08f91cbff373247d3c9269ab53846
4
+ data.tar.gz: b92adaeef605ddf754799f1dae6b338f2d540cfac5864a7e7d169793855e6c16
5
5
  SHA512:
6
- metadata.gz: cb156deeacb9180ffe215cba800f401a1c698ceeab193e4a472374505f29a4ce6e65b9fea541054106d3a06ba8133caad3810bc5823e8f4505fc18029056b7cb
7
- data.tar.gz: 1ad729afc8bbba3e1677ae363d0cc2cd8809bf17575cdf212229df9e11d526f570ae5fd26536ecf9788cf05d145bee58e738b77dd68da54c5d0ac8ff14f4b0ac
6
+ metadata.gz: a49368b029bbccab98275b9f0be56785828275390c634247d255793c25bc71fb56081f5ccdec75586910b550fcad794699eb741d6931836819e2881b33f13262
7
+ data.tar.gz: 96324a6d4571a68a64dfe602f8aaa730726efef22efc1b1ecebafc899e0024acebcea9f01de8607c8919e2a57a726e5995fd7ec8f022fc323355c8122931103c
@@ -1,7 +1,7 @@
1
1
  require 'sensei_eod_utils'
2
2
 
3
3
  module SenseiApi
4
- class EtfStatistics < SenseiApi::Base
4
+ class EtfStatistics < SenseiApi::StatisticsBase
5
5
  class <<self
6
6
  def url
7
7
  @url ||= "#{base_url}/etf"
@@ -1,7 +1,7 @@
1
1
  require 'sensei_eod_utils'
2
2
 
3
3
  module SenseiApi
4
- class OptionStatistics < SenseiApi::Base
4
+ class OptionStatistics < SenseiApi::StatisticsBase
5
5
  class <<self
6
6
  def url
7
7
  @url ||= "#{base_url}/option"
@@ -1,7 +1,7 @@
1
1
  require 'sensei_eod_utils'
2
2
 
3
3
  module SenseiApi
4
- class Statistics
4
+ class StatisticsBase
5
5
  class <<self
6
6
  def statistics(params)
7
7
  response = HTTParty.get(url, query: params.compact, format: :json)
@@ -1,7 +1,7 @@
1
1
  require 'sensei_eod_utils'
2
2
 
3
3
  module SenseiApi
4
- class StockStatistics < SenseiApi::Base
4
+ class StockStatistics < SenseiApi::StatisticsBase
5
5
  class <<self
6
6
  def url
7
7
  @url ||= "#{base_url}/stock"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensei_eod_statistics_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nishant Shah
@@ -44,9 +44,9 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
- - lib/sensei_api/base.rb
48
47
  - lib/sensei_api/etf_statistics.rb
49
48
  - lib/sensei_api/option_statistics.rb
49
+ - lib/sensei_api/statistics_base.rb
50
50
  - lib/sensei_api/stock_statistics.rb
51
51
  - lib/sensei_eod_statistics_ruby.rb
52
52
  homepage: https://rubygems.org/gems/sensei_eod_statistics_ruby