Sha256: d9768f82719545a4bcd666e5fb8bc21f7f86b2364f151bb8d155ae1312aabad9
Contents?: true
Size: 642 Bytes
Versions: 9
Compression:
Stored size: 642 Bytes
Contents
module Elasticity class Application attr_accessor :name attr_accessor :arguments attr_accessor :version attr_accessor :additional_info def initialize(args) @name = args[:name] @arguments = args[:arguments] @version = args[:version] @additional_info = args[:additional_info] end def to_hash application = { name: @name } application[:args] = @arguments unless @arguments.nil? || @arguments.empty? application[:version] = @version if @version application[:additional_info] = @additional_info if @additional_info application end end end
Version data entries
9 entries across 9 versions & 1 rubygems