Class: Mill::Resource::GoogleSiteVerification

Inherits:
Mill::Resource show all
Defined in:
lib/mill/resources/google_site_verification.rb

Constant Summary

Constants inherited from Mill::Resource

FileTypes

Instance Attribute Summary collapse

Attributes inherited from Mill::Resource

#content, #date, #input_file, #node, #output_file, #path, #public, #site

Instance Method Summary collapse

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

#keyObject

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

#inspectObject



15
16
17
18
19
# File 'lib/mill/resources/google_site_verification.rb', line 15

def inspect
  super + ", key: %p" % [
    @key,
  ]
end

#loadObject



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