Class: Embedded

Inherits:
RestApi::Base show all
Defined in:
app/models/embedded.rb

Instance Method Summary collapse

Methods inherited from RestApi::Base

alias_attribute, aliased_attributes, allow_anonymous?, #as, #as=, #assign_attributes, attr_alters, #attributes=, calculated_attributes, #clone, configuration=, connection, custom_id, delete, #dup, #duplicate_errors, element_path, exception_for_code, find, find_one, get, #get, #has_exit_code?, headers, #initialize, #load, #load_remote_errors, on_exit_code, #raise_on_invalid, #reload, remote_errors_for, #remote_results, #save!, #save_with_change_tracking, shared_connection, singleton?, #to_json, translate_api_error, use_patch_on_update?, #valid?

Methods included from ActiveResource::Associations

#belongs_to, #has_many, #has_one

Constructor Details

This class inherits a constructor from RestApi::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RestApi::Base

Instance Method Details

#info(cart) ⇒ Object



2
3
4
# File 'app/models/embedded.rb', line 2

def info(cart)
  @attributes[cart].info rescue nil
end

#jenkins_build_urlObject

FIXME: Bug 820651 should make this cleaner to retrieve



7
8
9
10
# File 'app/models/embedded.rb', line 7

def jenkins_build_url
  client = info('jenkins-client-1.4')
  ((client || '').chomp)[/Job URL: ([^\s]*)\s*/, 1]
end