Class: Ecfr::AdminService::Build
- Defined in:
- lib/ecfr/admin_service/build.rb
Constant Summary collapse
- BUILDS_PATH =
"v1/builds"
Constants inherited from Base
Base::SUPPORTED_ARRAY_ACCESSORS
Instance Attribute Summary collapse
- #expired ⇒ Boolean readonly
-
#id ⇒ String
readonly
build id.
- #previewable ⇒ Boolean readonly
-
#status ⇒ String
readonly
build status - either Success or Failure.
Attributes inherited from Base
#metadata, #request_data, #response_status, #results
Class Method Summary collapse
-
.find(build_id) ⇒ <Build>
Retrieve a Build by id.
Methods inherited from Base
base_url, service_name, service_path
Methods inherited from Base
basic_auth_client_options, #each, #initialize, metadata, metadata_key, result_key
Methods included from Extensible
Methods included from Ecfr::AttributeMethodDefinition
Methods inherited from Client
build, cache_key, client, client_pool, delete, execute, get, handle_response, perform, post, purge
Methods included from ParallelClient
Constructor Details
This class inherits a constructor from Ecfr::Base
Instance Attribute Details
#expired ⇒ Boolean (readonly)
11 12 |
# File 'lib/ecfr/admin_service/build.rb', line 11 attribute :expired, type: :boolean |
#id ⇒ String (readonly)
build id
6 7 |
# File 'lib/ecfr/admin_service/build.rb', line 6 attribute :id, desc: "build id" |
#previewable ⇒ Boolean (readonly)
13 14 |
# File 'lib/ecfr/admin_service/build.rb', line 13 attribute :previewable, type: :boolean |
#status ⇒ String (readonly)
build status - either Success or Failure
8 9 |
# File 'lib/ecfr/admin_service/build.rb', line 8 attribute :status, desc: "build status - either *Success* or *Failure*" |
Class Method Details
.find(build_id) ⇒ <Build>
Retrieve a Build by id
25 26 27 28 29 30 |
# File 'lib/ecfr/admin_service/build.rb', line 25 def self.find(build_id) perform( :get, build_path(build_id) ) end |