Sha256: 1afe0e0f97661ffe9f2fe8b5a9216f5d3219c68f99ffe2d28334af27de85a0ce
Contents?: true
Size: 635 Bytes
Versions: 23
Compression:
Stored size: 635 Bytes
Contents
module Sorenson module Services class Site < Base attr_accessor :name, :account_id, :id, :description def self.create(name, options = {}) new(post_to('/sites', {:site => {:name => name}.merge(options)})) end def self.all get_from('/sites') end def Site.find_by_name(name) new(get_from('/sites/find_by_name/', :name => name)) end def initialize(data) @name = data['name'] @account_id = data['account_id'] @id = data['id'] @description = data['description'] end end end end
Version data entries
23 entries across 23 versions & 1 rubygems