Sha256: 2fbe991a8a303592a76cc4619664f7df3846170403e7fdb39fc4f9d0dbc00778
Contents?: true
Size: 873 Bytes
Versions: 2
Compression:
Stored size: 873 Bytes
Contents
module Globase class List < Resource def show(params = {}) raise NoMethodError end def update(data, params = {}) raise NoMethodError end def delete(params = {}) raise NoMethodError end def profile(id, params = {}) ListProfile.find(self, id, params) end def schema(params = {}) @schema ||= ListSchema.get(self, params) end def segments(params = {}) @segments ||= ListSegment.all(self, params) end class << self def create(data, params = {}) raise NoMethodError end def find(id, params = {}) all.select{|l| l.id == id.to_i }.first end def all(params = {}) super(params) end def fields @fields = super | [:id, :name, :description, :profileCount, :sysCreated, :sysChanged] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
globase-0.0.0.pre4 | lib/globase/list.rb |
globase-0.0.0.pre3 | lib/globase/list.rb |