Class: Fizzy::Types::CardRef

Inherits:
Data
  • Object
show all
Defined in:
lib/fizzy/generated/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



249
250
251
# File 'lib/fizzy/generated/types.rb', line 249

def id
  @id
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



249
250
251
# File 'lib/fizzy/generated/types.rb', line 249

def url
  @url
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



251
252
253
254
255
256
# File 'lib/fizzy/generated/types.rb', line 251

def self.from_json(data)
  new(
    id: data["id"],
    url: data["url"]
  )
end