Class: SinatraSocialShareButton::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/sinatra_social_share_button.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



16
17
18
19
20
21
# File 'lib/sinatra_social_share_button.rb', line 16

def initialize
  @allow_sites = %w[twitter facebook weibo qq douban google_bookmark
                    pinterest email linkedin wechat vkontakte
                    xing reddit hacker_news telegram odnoklassniki
                    whatsapp_app whatsapp_web]
end

Instance Attribute Details

#allow_sitesObject

Returns the value of attribute allow_sites.



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

def allow_sites
  @allow_sites
end