Module: DataMapper::YS::Proxy
- Defined in:
- lib/dm-ys/proxy.rb
Overview
Example
Class Foo
include DataMapper::YS
uri "http://ds.gkwiki2.com/47.html"
thead "table.style_table thead tr"
tbody "table.style_table tbody tr"
Defined Under Namespace
Modules: ClassMethods Classes: MaxPagesOverflow
Class Method Summary collapse
Class Method Details
.included(model) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/dm-ys/proxy.rb', line 14 def self.included(model) model.class_eval do extend ClassMethods dsl_accessor :uri dsl_accessor :table dsl_accessor :tbody dsl_accessor :thead dsl_accessor :ys, :default=>proc{|*a| DataMapper::YS::Config.new} property :id, DataMapper::Types::Serial end end |