Class: IActionable::Objects::Identifier

Inherits:
IActionableObject show all
Defined in:
lib/iactionable/objects/identifier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from IActionableObject

#initialize, timestamp_regexp, timestamp_to_seconds

Constructor Details

This class inherits a constructor from IActionable::Objects::IActionableObject

Instance Attribute Details

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/iactionable/objects/identifier.rb', line 4

def id
  @id
end

#id_hashObject

Returns the value of attribute id_hash.



5
6
7
# File 'lib/iactionable/objects/identifier.rb', line 5

def id_hash
  @id_hash
end

#id_typeObject

Returns the value of attribute id_type.



6
7
8
# File 'lib/iactionable/objects/identifier.rb', line 6

def id_type
  @id_type
end

Instance Method Details

#to_hashObject



8
9
10
11
12
13
14
# File 'lib/iactionable/objects/identifier.rb', line 8

def to_hash
  {
    "ID" => @id,
    "IDHash" => @id_hash,
    "IDType" => @id_type
  }
end