Class: PuppetForge::V3::Module
- Defined in:
- lib/puppet_forge/v3/module.rb
Overview
Models a Puppet Module hosted on the Forge.
Constant Summary
Constants inherited from Base
Constants included from Connection
Connection::AUTHORIZATION_TOKEN_REGEX, Connection::USER_AGENT
Instance Attribute Summary
Attributes included from Connection
Class Method Summary collapse
Methods inherited from Base
all, all_stateless, api_version, #attribute, #attributes, convert_plus_to_space, find_request, find_stateless, get_collection, get_collection_request, get_collection_stateless, #has_attribute?, #initialize, lru_cache, lru_cache_key, new_collection, #orm_resp_item, request, split_uri_path, where, where_request, where_stateless
Methods included from Connection
accept_language, accept_language=, authorization, authorization=, default_connection, make_connection, proxy, proxy=
Methods included from LazyRelations
included, #lazy, #lazy_collection, #name, #parent
Methods included from LazyAccessors
#class_name, #fetch, included, #inspect, #method_missing
Constructor Details
This class inherits a constructor from PuppetForge::V3::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PuppetForge::LazyAccessors
Class Method Details
.find(slug) ⇒ Object
14 15 16 17 18 |
# File 'lib/puppet_forge/v3/module.rb', line 14 def self.find(slug) super rescue Faraday::ResourceNotFound raise PuppetForge::ModuleNotFound, "Module #{slug} not found" end |