Class: Applinks::Builder::AppBlock

Inherits:
MetaBlock
  • Object
show all
Defined in:
lib/applinks/builder.rb

Direct Known Subclasses

AndroidBlock, IOSBlock, WindowsPhoneBlock

Instance Attribute Summary collapse

Attributes inherited from MetaBlock

#url

Instance Method Summary collapse

Methods inherited from MetaBlock

#valid?

Constructor Details

#initialize(hsh, versioned) ⇒ AppBlock

Returns a new instance of AppBlock.



88
89
90
91
92
# File 'lib/applinks/builder.rb', line 88

def initialize hsh, versioned
  super(hsh)
  @versioned = versioned
  @app_name = hsh[:app_name] if hsh.has_key?(:app_name)
end

Instance Attribute Details

#app_nameObject (readonly)

Returns the value of attribute app_name.



86
87
88
# File 'lib/applinks/builder.rb', line 86

def app_name
  @app_name
end

#versionedObject (readonly)

Returns the value of attribute versioned.



86
87
88
# File 'lib/applinks/builder.rb', line 86

def versioned
  @versioned
end