Class: Feed2Gram::Config
- Inherits:
-
Struct
- Object
- Struct
- Feed2Gram::Config
- Defined in:
- lib/feed2gram/loads_config.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#access_token_refreshed_at ⇒ Object
Returns the value of attribute access_token_refreshed_at.
-
#facebook_app_id ⇒ Object
Returns the value of attribute facebook_app_id.
-
#facebook_app_secret ⇒ Object
Returns the value of attribute facebook_app_secret.
-
#feed_url ⇒ Object
Returns the value of attribute feed_url.
-
#instagram_id ⇒ Object
Returns the value of attribute instagram_id.
Instance Method Summary collapse
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token
5 6 7 |
# File 'lib/feed2gram/loads_config.rb', line 5 def access_token @access_token end |
#access_token_refreshed_at ⇒ Object
Returns the value of attribute access_token_refreshed_at
5 6 7 |
# File 'lib/feed2gram/loads_config.rb', line 5 def access_token_refreshed_at @access_token_refreshed_at end |
#facebook_app_id ⇒ Object
Returns the value of attribute facebook_app_id
5 6 7 |
# File 'lib/feed2gram/loads_config.rb', line 5 def facebook_app_id @facebook_app_id end |
#facebook_app_secret ⇒ Object
Returns the value of attribute facebook_app_secret
5 6 7 |
# File 'lib/feed2gram/loads_config.rb', line 5 def facebook_app_secret @facebook_app_secret end |
#feed_url ⇒ Object
Returns the value of attribute feed_url
5 6 7 |
# File 'lib/feed2gram/loads_config.rb', line 5 def feed_url @feed_url end |
#instagram_id ⇒ Object
Returns the value of attribute instagram_id
5 6 7 |
# File 'lib/feed2gram/loads_config.rb', line 5 def instagram_id @instagram_id end |
Instance Method Details
#as_yaml ⇒ Object
14 15 16 |
# File 'lib/feed2gram/loads_config.rb', line 14 def as_yaml to_h.transform_keys(&:to_s).to_yaml.gsub(/^---\n/, "") end |