Sha256: c27d69163e109598ad71156dd550ad8cb9fb65d9c14838a2fd2dd47363862300
Contents?: true
Size: 518 Bytes
Versions: 23
Compression:
Stored size: 518 Bytes
Contents
module Siteleaf class Theme < Entity attr_accessor :name, :site_id attr_reader :id, :created_at, :updated_at def self.find_by_site_id(site_id) Site.new({:id => site_id}).theme end def self.assets_by_site_id(site_id) Theme.new({:site_id => site_id}).assets end def site Site.find(self.site_id) end def assets result = Client.get "sites/#{self.site_id}/theme/assets" result.map { |r| Asset.new(r) } if result end end end
Version data entries
23 entries across 23 versions & 1 rubygems