Sha256: 403aff063c9d0f8796e15e6641e6fd5b395b69ed3d96462552c8025e77dfc39c
Contents?: true
Size: 651 Bytes
Versions: 7
Compression:
Stored size: 651 Bytes
Contents
class CreditsResponse attr_accessor :cast_id, :character, :credit_id, :id, :name, :order, :profile_path def initialize self.cast_id = 4 self.character = "The Narrator" self.credit_id = "52fe4250c3a36847f80149f3" self.id = 819 self.name = "Edward Norton" self.order = 0 self.profile_path = "/iUiePUAQKN4GY6jorH9m23cbVli.jpg" end def to_hash { cast_id: 4, character: "The Narrator", credit_id: "52fe4250c3a36847f80149f3", id: 819, name: "Edward Norton", order: 0, profile_path: "/iUiePUAQKN4GY6jorH9m23cbVli.jpg" } end def to_json to_hash.to_json end end
Version data entries
7 entries across 7 versions & 1 rubygems