Class: Alpaca::News::Api::Configuration
- Inherits:
-
Object
- Object
- Alpaca::News::Api::Configuration
- Defined in:
- lib/alpaca/news/api/configuration.rb
Instance Attribute Summary collapse
-
#client_options ⇒ String
Alpaca News API client options.
-
#host ⇒ String
Alpaca API host.
-
#key_id ⇒ String
Alpaca API Key ID.
-
#secret_key ⇒ String
Alpaca API Secret Key.
-
#stream ⇒ String
Alpaca API stream host.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
Create new configuration.
-
#user_agent ⇒ String
User agent base on the alpaca-news-api version and ruby version.
Constructor Details
#initialize(options = {}) ⇒ Configuration
Create new configuration
40 41 42 43 44 45 46 47 |
# File 'lib/alpaca/news/api/configuration.rb', line 40 def initialize( = {}) = ActiveSupport::HashWithIndifferentAccess.new() self.key_id = [:key_id] self.secret_key = [:secret_key] self.host = [:host] self.stream = [:stream] self. = [:client_options] end |
Instance Attribute Details
#client_options ⇒ String
Alpaca News API client options
29 30 31 |
# File 'lib/alpaca/news/api/configuration.rb', line 29 def @client_options end |
#host ⇒ String
Alpaca API host
21 22 23 |
# File 'lib/alpaca/news/api/configuration.rb', line 21 def host @host end |
#key_id ⇒ String
Alpaca API Key ID
11 12 13 |
# File 'lib/alpaca/news/api/configuration.rb', line 11 def key_id @key_id end |
#secret_key ⇒ String
Alpaca API Secret Key
17 18 19 |
# File 'lib/alpaca/news/api/configuration.rb', line 17 def secret_key @secret_key end |
#stream ⇒ String
Alpaca API stream host
25 26 27 |
# File 'lib/alpaca/news/api/configuration.rb', line 25 def stream @stream end |