class Stratosphere::Config

Attributes

aws[RW]
cloud[RW]
dir_prefix[RW]
domain[RW]

Public Class Methods

new(options={}) click to toggle source
# File lib/stratosphere/config.rb, line 5
def initialize(options={})
  @aws        = options[:aws]
  @cloud      = options[:cloud]
  @domain     = options[:domain]
  @dir_prefix = options[:dir_prefix]
end

Public Instance Methods

to_hash() click to toggle source
# File lib/stratosphere/config.rb, line 12
def to_hash
  hash = {}
  self.instance_variables.each do |attr|
    hash[attr.to_s.delete('@').to_sym] = self.instance_variable_get(attr)
  end
  hash
end