class ApiCanon::DocumentedModel
Attributes
id[R]
properties[R]
Public Class Methods
new(id)
click to toggle source
# File lib/api_canon/documented_model.rb, line 5 def initialize(id) @id = id @properties = {} end
Public Instance Methods
property(name, opts={})
click to toggle source
# File lib/api_canon/documented_model.rb, line 9 def property(name, opts={}) @properties[name] = opts end