Module: Concerns::FestivityArtistMethods

Includes:
ActiveSupport::Concern
Included in:
FestivityEventPage, FestivityMarketPage
Defined in:
app/models/concerns/festivity_artist_methods.rb

Instance Method Summary collapse

Instance Method Details

#has_facebook?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/models/concerns/festivity_artist_methods.rb', line 14

def has_facebook?
  !self.artist_facebook.empty?
end

#has_homepage?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/concerns/festivity_artist_methods.rb', line 22

def has_homepage?
  !self.artist_homepage.empty?
end

#has_instagram?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/models/concerns/festivity_artist_methods.rb', line 18

def has_instagram?
  !self.artist_instagram.empty?
end

#has_social?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'app/models/concerns/festivity_artist_methods.rb', line 6

def has_social?
  (has_twitter? or has_facebook? or has_homepage? or has_instagram?)
end

#has_twitter?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/models/concerns/festivity_artist_methods.rb', line 10

def has_twitter?
  !self.artist_twitter.empty?
end