Class: Mill::Resource::GoogleSiteVerification
- Inherits:
-
Mill::Resource
- Object
- Mill::Resource
- Mill::Resource::GoogleSiteVerification
- Defined in:
- lib/mill/resources/google_site_verification.rb
Constant Summary
Constants inherited from Mill::Resource
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
Attributes inherited from Mill::Resource
#content, #date, #input_file, #node, #output_file, #path, #public, #site
Instance Method Summary collapse
-
#initialize(key:, **args) ⇒ GoogleSiteVerification
constructor
A new instance of GoogleSiteVerification.
- #inspect ⇒ Object
- #load ⇒ Object
Methods inherited from Mill::Resource
#absolute_uri, #build, #change_frequency, #children, #final_content, #parent, #public?, #redirect?, #save, #siblings, #tag_uri, #text?, #uri
Constructor Details
#initialize(key:, **args) ⇒ GoogleSiteVerification
Returns a new instance of GoogleSiteVerification.
9 10 11 12 13 |
# File 'lib/mill/resources/google_site_verification.rb', line 9 def initialize(key:, **args) @key = key @public = false super(**args) end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
7 8 9 |
# File 'lib/mill/resources/google_site_verification.rb', line 7 def key @key end |
Instance Method Details
#inspect ⇒ Object
15 16 17 18 19 |
# File 'lib/mill/resources/google_site_verification.rb', line 15 def inspect super + ", key: %p" % [ @key, ] end |
#load ⇒ Object
21 22 23 24 |
# File 'lib/mill/resources/google_site_verification.rb', line 21 def load @content = "google-site-verification: #{@key}.html\n" super end |