class Applinks::Builder::WebBlock

Public Class Methods

new(hsh = {}) click to toggle source
Calls superclass method Applinks::Builder::MetaBlock::new
# File lib/applinks/builder.rb, line 132
def initialize hsh = {}, _unused
  super(hsh)
  @should_fallback = hsh.has_key?(:should_fallback) ? hsh[:should_fallback] : true
end

Public Instance Methods

should_fallback?() click to toggle source
# File lib/applinks/builder.rb, line 137
def should_fallback?
  @should_fallback
end
valid?() click to toggle source
# File lib/applinks/builder.rb, line 141
def valid?
  !should_fallback? || !@url.nil?
end