Sha256: 0873fe7a1e33eac37a771e640d650f5f52a9d802272ae9a58528a8332cb088c0
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
module AppleNews class Configuration attr_accessor :channel_id, :api_key_id, :api_key_secret, :api_base def initialize(attributes = {}) @channel_id = attributes[:channel_id] @api_key_id = attributes[:api_key_id] @api_key_secret = attributes[:api_key_secret] @api_base = attributes[:api_base] || 'https://news-api.apple.com' end def channel AppleNews::Channel.new(channel_id, nil, self) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apple-news-0.5.1 | lib/apple-news/configuration.rb |
apple-news-0.5.0 | lib/apple-news/configuration.rb |