Class: BBC::Redux::Crid

Inherits:
Object
  • Object
show all
Defined in:
lib/bbc/redux/crid.rb

Overview

Redux Crid Object

Examples:

Properties of the crid object


crid = redux_client.asset('5966413090093319525').pcrid

crid.content      #=> String
crid.description  #=> String
crid.type         #=> String

Author:

Instance Attribute Summary collapse

Instance Attribute Details

#contentString (readonly) Also known as: to_s

Returns the crids content, e.g. crid://fp.bbc.co.uk/LYRJ9T

Returns:

  • (String)

    the crids content, e.g. crid://fp.bbc.co.uk/LYRJ9T


26
# File 'lib/bbc/redux/crid.rb', line 26

attribute :content, String

#descriptionString (readonly)

Returns the crid's description, e.g. “DTG series CRID”

Returns:

  • (String)

    the crid's description, e.g. “DTG series CRID”


32
# File 'lib/bbc/redux/crid.rb', line 32

attribute :description, String

#typeString (readonly)

Returns the crid's type byte value, e.g. “0x32”

Returns:

  • (String)

    the crid's type byte value, e.g. “0x32”


36
# File 'lib/bbc/redux/crid.rb', line 36

attribute :type, String