Class: AppleNews::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/apple-news/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
# File 'lib/apple-news/configuration.rb', line 5

def initialize
  @channel_id = nil
  @api_key_id = nil
  @api_key_secret = nil
  @api_base = 'https://news-api.apple.com'
end

Instance Attribute Details

#api_baseObject

Returns the value of attribute api_base.



3
4
5
# File 'lib/apple-news/configuration.rb', line 3

def api_base
  @api_base
end

#api_key_idObject

Returns the value of attribute api_key_id.



3
4
5
# File 'lib/apple-news/configuration.rb', line 3

def api_key_id
  @api_key_id
end

#api_key_secretObject

Returns the value of attribute api_key_secret.



3
4
5
# File 'lib/apple-news/configuration.rb', line 3

def api_key_secret
  @api_key_secret
end

#channel_idObject

Returns the value of attribute channel_id.



3
4
5
# File 'lib/apple-news/configuration.rb', line 3

def channel_id
  @channel_id
end