module GraphiteDashboardApi::ExtraOptions

Attributes

extra_options[RW]

Public Instance Methods

extra_options_from_hash!(std_options, hash) click to toggle source
# File lib/graphite-dashboard-api/extra_options.rb, line 19
def extra_options_from_hash!(std_options, hash)
  extra_options = hash.keys - std_options
  extra_options.each do |k|
    @extra_options[k] = hash[k]
  end
  self
end
extra_options_to_hash() click to toggle source
# File lib/graphite-dashboard-api/extra_options.rb, line 11
def extra_options_to_hash
  hash = {}
  @extra_options.each do |k,v|
    hash[k.to_s] = v
  end
  hash
end
method_missing(m, *args) click to toggle source
# File lib/graphite-dashboard-api/extra_options.rb, line 4
def method_missing(m, *args)
  if args && args.size > 0
    @extra_options[m.to_s] = args[0]
  end
  @extra_options[m.to_s]
end