Sha256: a8baa789b3920aeb86873b0858ab2f949c08613b05c754f408c031519275aae7

Contents?: true

Size: 374 Bytes

Versions: 7

Compression:

Stored size: 374 Bytes

Contents

class Enceladus::Cast < Enceladus::ApiResource
  RESOURCE_ATTRIBUTES = [:cast_id, :character, :credit_id, :id, :name, :order, :profile_path].map(&:freeze).freeze
  attr_accessor *RESOURCE_ATTRIBUTES

  # Returns an array containing URL's (as strings) for cast images.
  def profile_urls
    Enceladus::Configuration::Image.instance.url_for("profile", profile_path)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
enceladus-0.0.8 lib/enceladus/models/cast.rb
enceladus-0.0.7 lib/enceladus/models/cast.rb
enceladus-0.0.6 lib/enceladus/models/cast.rb
enceladus-0.0.5 lib/enceladus/models/cast.rb
enceladus-0.0.4 lib/enceladus/models/cast.rb
enceladus-0.0.3 lib/enceladus/models/cast.rb
enceladus-0.0.2 lib/enceladus/models/cast.rb