Class: Feed2Thread::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/feed2thread/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/feed2thread/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/feed2thread/loads_config.rb', line 5

def access_token_refreshed_at
  @access_token_refreshed_at
end

#feed_urlObject

Returns the value of attribute feed_url

Returns:

  • (Object)

    the current value of feed_url



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

def feed_url
  @feed_url
end

#threads_app_idObject

Returns the value of attribute threads_app_id

Returns:

  • (Object)

    the current value of threads_app_id



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

def threads_app_id
  @threads_app_id
end

#threads_app_secretObject

Returns the value of attribute threads_app_secret

Returns:

  • (Object)

    the current value of threads_app_secret



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

def threads_app_secret
  @threads_app_secret
end

#threads_user_idObject

Returns the value of attribute threads_user_id

Returns:

  • (Object)

    the current value of threads_user_id



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

def threads_user_id
  @threads_user_id
end

Instance Method Details

#as_yamlObject



14
15
16
# File 'lib/feed2thread/loads_config.rb', line 14

def as_yaml
  to_h.transform_keys(&:to_s).to_yaml.gsub(/^---\n/, "")
end