   @param [String] field
   @param [String] type
   ###
-  @_build_gs = ( field, type ) ->
+  @_build_gs = ( field, type, opts ) ->
     _val = null
 
     classname = ("#{@}".match /function\s(\w+)/)[1]


    getter = -> _val
    setter = (value) ->

      switch ltype
        when 'string' then f = (typeof value is 'string')
        when 'number' then f = (typeof value is 'number')
        else f = (value instanceof type)

      if f
        _val = value
        @update field, _val
      else

    for k, v of resources
      @[k] = @_build_rest.apply @, [k].concat(v.concat host)

  @fields = ( fields, opts = validate: true ) ->
    @_build_gs key, type, opts for key, type of fields



