class Oat::Props

Public Class Methods

new() click to toggle source
# File lib/oat/props.rb, line 4
def initialize
  @attributes = {}
end

Public Instance Methods

_from(data) click to toggle source
# File lib/oat/props.rb, line 12
def _from(data)
  @attributes = data.to_hash
end
id(value) click to toggle source
# File lib/oat/props.rb, line 8
def id(value)
  @attributes[:id] = value
end
method_missing(name, value) click to toggle source
# File lib/oat/props.rb, line 16
def method_missing(name, value)
  @attributes[name] = value
end
to_hash() click to toggle source
# File lib/oat/props.rb, line 20
def to_hash
  @attributes
end