Module: GoApiClient::Helpers::SimpleAttributesSupport
- Included in:
- Artifact, Atom::Author, Atom::Entry, Atom::FeedPage, Commit, Job, Pipeline, Stage
- Defined in:
- lib/go_api_client/helpers/simple_attribute_support.rb
Instance Method Summary collapse
Instance Method Details
#initialize(attributes = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/go_api_client/helpers/simple_attribute_support.rb', line 4 def initialize(attributes={}) attributes.each do |name, value| send("#{name}=", value) unless value.to_s.empty? end end |