class TheWalters::ArtObject

An ArtObject is a piece of art, an artifact or similar item within the Walters collections. It's known in the Walters API as an “Object”.

Public Class Methods

find(id) click to toggle source

Find a specific Object by id.

# File lib/thewalters/art_object.rb, line 7
def self.find(id)
  get_by_id(id)
end

Private Class Methods

api_path() click to toggle source
# File lib/thewalters/art_object.rb, line 18
def self.api_path; "objects" end

Public Instance Methods

images() click to toggle source

Get the images for this object

# File lib/thewalters/art_object.rb, line 12
def images
  TheWalters::ArtObject.get_images(self.ObjectID)
end