Class: Feed2Gram::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/feed2gram/loads_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token

Returns:

  • (Object)

    the current value of access_token



5
6
7
# File 'lib/feed2gram/loads_config.rb', line 5

def access_token
  @access_token
end

#access_token_refreshed_atObject

Returns the value of attribute access_token_refreshed_at

Returns:

  • (Object)

    the current value of 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_idObject

Returns the value of attribute facebook_app_id

Returns:

  • (Object)

    the current value of facebook_app_id



5
6
7
# File 'lib/feed2gram/loads_config.rb', line 5

def facebook_app_id
  @facebook_app_id
end

#facebook_app_secretObject

Returns the value of attribute facebook_app_secret

Returns:

  • (Object)

    the current value of facebook_app_secret



5
6
7
# File 'lib/feed2gram/loads_config.rb', line 5

def facebook_app_secret
  @facebook_app_secret
end

#feed_urlObject

Returns the value of attribute feed_url

Returns:

  • (Object)

    the current value of feed_url



5
6
7
# File 'lib/feed2gram/loads_config.rb', line 5

def feed_url
  @feed_url
end

#instagram_idObject

Returns the value of attribute instagram_id

Returns:

  • (Object)

    the current value of instagram_id



5
6
7
# File 'lib/feed2gram/loads_config.rb', line 5

def instagram_id
  @instagram_id
end

Instance Method Details

#as_yamlObject



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