Class: Twilic::Core::Model::KeyRef

Inherits:
Data
  • Object
show all
Defined in:
lib/twilic/core/model.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



80
81
82
# File 'lib/twilic/core/model.rb', line 80

def id
  @id
end

#is_idObject (readonly)

Returns the value of attribute is_id

Returns:

  • (Object)

    the current value of is_id



80
81
82
# File 'lib/twilic/core/model.rb', line 80

def is_id
  @is_id
end

#literalObject (readonly)

Returns the value of attribute literal

Returns:

  • (Object)

    the current value of literal



80
81
82
# File 'lib/twilic/core/model.rb', line 80

def literal
  @literal
end

Class Method Details

.id_ref(id) ⇒ Object



85
86
87
# File 'lib/twilic/core/model.rb', line 85

def self.id_ref(id)
  new(literal: "", id: id, is_id: true)
end

.literal(s) ⇒ Object



81
82
83
# File 'lib/twilic/core/model.rb', line 81

def self.literal(s)
  new(literal: s, id: 0, is_id: false)
end