Class: PuppetForgeServer::Models::Metadata
- Defined in:
- lib/puppet_forge_server/models/metadata.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#checksums ⇒ Object
Returns the value of attribute checksums.
-
#classes ⇒ Object
Returns the value of attribute classes.
-
#definitions ⇒ Object
Returns the value of attribute definitions.
-
#dependencies ⇒ Object
Returns the value of attribute dependencies.
-
#description ⇒ Object
Returns the value of attribute description.
-
#issues_url ⇒ Object
Returns the value of attribute issues_url.
-
#license ⇒ Object
Returns the value of attribute license.
-
#mail ⇒ Object
Returns the value of attribute mail.
-
#name ⇒ Object
Returns the value of attribute name.
-
#operatingsystem_support ⇒ Object
Returns the value of attribute operatingsystem_support.
-
#project_page ⇒ Object
Returns the value of attribute project_page.
-
#puppet_version ⇒ Object
Returns the value of attribute puppet_version.
-
#requirements ⇒ Object
Returns the value of attribute requirements.
-
#source ⇒ Object
Returns the value of attribute source.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#types ⇒ Object
Returns the value of attribute types.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(attributes) ⇒ Metadata
constructor
A new instance of Metadata.
Methods inherited from Builder
Constructor Details
#initialize(attributes) ⇒ Metadata
Returns a new instance of Metadata.
25 26 27 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 25 def initialize(attributes) super(attributes) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PuppetForgeServer::Models::Builder
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
21 22 23 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 21 def @author end |
#checksums ⇒ Object
Returns the value of attribute checksums.
22 23 24 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 22 def checksums @checksums end |
#classes ⇒ Object
Returns the value of attribute classes.
23 24 25 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 23 def classes @classes end |
#definitions ⇒ Object
Returns the value of attribute definitions.
23 24 25 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 23 def definitions @definitions end |
#dependencies ⇒ Object
Returns the value of attribute dependencies.
21 22 23 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 21 def dependencies @dependencies end |
#description ⇒ Object
Returns the value of attribute description.
21 22 23 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 21 def description @description end |
#issues_url ⇒ Object
Returns the value of attribute issues_url.
22 23 24 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 22 def issues_url @issues_url end |
#license ⇒ Object
Returns the value of attribute license.
22 23 24 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 22 def license @license end |
#mail ⇒ Object
Returns the value of attribute mail.
23 24 25 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 23 def mail @mail end |
#name ⇒ Object
Returns the value of attribute name.
21 22 23 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 21 def name @name end |
#operatingsystem_support ⇒ Object
Returns the value of attribute operatingsystem_support.
22 23 24 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 22 def @operatingsystem_support end |
#project_page ⇒ Object
Returns the value of attribute project_page.
21 22 23 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 21 def project_page @project_page end |
#puppet_version ⇒ Object
Returns the value of attribute puppet_version.
23 24 25 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 23 def puppet_version @puppet_version end |
#requirements ⇒ Object
Returns the value of attribute requirements.
22 23 24 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 22 def requirements @requirements end |
#source ⇒ Object
Returns the value of attribute source.
22 23 24 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 22 def source @source end |
#summary ⇒ Object
Returns the value of attribute summary.
21 22 23 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 21 def summary @summary end |
#tags ⇒ Object
Returns the value of attribute tags.
23 24 25 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 23 def @tags end |
#types ⇒ Object
Returns the value of attribute types.
21 22 23 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 21 def types @types end |
#version ⇒ Object
Returns the value of attribute version.
21 22 23 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 21 def version @version end |
Instance Method Details
#==(other) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 29 def ==(other) other && self.class.equal?(other.class) && @author == other. && @name == other.name && @version == other.version end |
#eql?(other) ⇒ Boolean
40 41 42 43 44 45 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 40 def eql?(other) other && self.class.equal?(other.class) && @author.eql?(other.) && @name.eql?(other.name) && @version.eql?(other.version) end |
#hash ⇒ Object
36 37 38 |
# File 'lib/puppet_forge_server/models/metadata.rb', line 36 def hash @author.hash ^ @name.hash ^ @version.hash end |