class Locomotive::Coal::Resource
Attributes
attributes[RW]
Public Class Methods
new(attributes)
click to toggle source
# File lib/locomotive/coal/resource.rb, line 7 def initialize(attributes) @attributes = attributes end
Public Instance Methods
method_missing(name, *args)
click to toggle source
Calls superclass method
# File lib/locomotive/coal/resource.rb, line 11 def method_missing(name, *args) if self.attributes.key?(name.to_s) self.attributes[name.to_s] else super end end
respond_to?(name, include_private = false)
click to toggle source
Calls superclass method
# File lib/locomotive/coal/resource.rb, line 19 def respond_to?(name, include_private = false) self.attributes.key?(name.to_s) || super end