class Fathom::List

Public Class Methods

new(attributes) click to toggle source
Calls superclass method Fathom::Object::new
# File lib/fathom/objects/list.rb, line 3
def initialize(attributes)
  super
  @attributes["data"].map! do |entry|
    Fathom.build_object(entry)
  end
end

Public Instance Methods

first_id() click to toggle source
# File lib/fathom/objects/list.rb, line 18
def first_id
  @attributes["data"].first.id
end
has_more?() click to toggle source
# File lib/fathom/objects/list.rb, line 10
def has_more?
  @attributes["has_more"]
end
last_id() click to toggle source
# File lib/fathom/objects/list.rb, line 14
def last_id
  @attributes["data"].last.id
end