module PrintReleaf::Actions::List::ClassMethods

Public Instance Methods

count() click to toggle source
# File lib/printreleaf/actions.rb, line 55
def count
  list.count
end
first() click to toggle source
# File lib/printreleaf/actions.rb, line 47
def first
  list.first
end
last() click to toggle source
# File lib/printreleaf/actions.rb, line 51
def last
  list.last
end
length() click to toggle source
# File lib/printreleaf/actions.rb, line 59
def length
  list.length
end
list(params={}) click to toggle source
# File lib/printreleaf/actions.rb, line 41
def list(params={})
  PrintReleaf.get(self.uri, params).map do |response|
    self.new(response)
  end
end