Class: GoApiClient::AttributeHelper
- Inherits:
-
Object
- Object
- GoApiClient::AttributeHelper
- Defined in:
- lib/go_api_client/attribute_helper.rb
Direct Known Subclasses
GoApiClient::Api::AbstractApi, Domain::Artifact, Domain::Author, Domain::Changeset, Domain::Config::Job, Domain::Config::Pipeline, Domain::Config::Stage, Domain::Entry, Domain::Feed, Domain::Job, Domain::Material, Domain::Pipeline, Domain::Project, Domain::ScheduledJob, Domain::Stage
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AttributeHelper
constructor
A new instance of AttributeHelper.
Constructor Details
#initialize(attributes = {}) ⇒ AttributeHelper
Returns a new instance of AttributeHelper.
3 4 5 6 7 |
# File 'lib/go_api_client/attribute_helper.rb', line 3 def initialize(attributes={}) attributes.each do |name, value| send("#{name}=", value) unless value.to_s.empty? end end |