Class: Socialfred::Api
- Inherits:
-
Object
- Object
- Socialfred::Api
- Defined in:
- lib/socialfred/api.rb
Constant Summary collapse
- API_URL =
'https://api.socialfred.com/'
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#api_url ⇒ Object
readonly
Returns the value of attribute api_url.
Instance Method Summary collapse
-
#initialize(api_key, api_url: API_URL) ⇒ Api
constructor
A new instance of Api.
- #publications ⇒ Object
Constructor Details
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/socialfred/api.rb', line 7 def api_key @api_key end |
#api_url ⇒ Object (readonly)
Returns the value of attribute api_url.
7 8 9 |
# File 'lib/socialfred/api.rb', line 7 def api_url @api_url end |
Instance Method Details
#publications ⇒ Object
16 17 18 |
# File 'lib/socialfred/api.rb', line 16 def publications @publications ||= Publications.new(api_key, api_url: api_url) end |