Module: Typekit::Element::Query::ClassMethods

Defined in:
lib/typekit/element/query.rb

Instance Method Summary collapse

Instance Method Details

#allObject



9
10
11
# File 'lib/typekit/element/query.rb', line 9

def all
  process(:index)
end

#find(id) ⇒ Object



17
18
19
20
21
# File 'lib/typekit/element/query.rb', line 17

def find(id)
  find!(id)
rescue ServerError
  nil
end

#find!(id) ⇒ Object



13
14
15
# File 'lib/typekit/element/query.rb', line 13

def find!(id)
  process(:show, id)
end