Class: Chemtrail::Intrinsic

Inherits:
Object
  • Object
show all
Defined in:
lib/chemtrail/intrinsic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ Intrinsic

Returns a new instance of Intrinsic.



4
5
6
# File 'lib/chemtrail/intrinsic.rb', line 4

def initialize(id)
  @id = id
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



2
3
4
# File 'lib/chemtrail/intrinsic.rb', line 2

def id
  @id
end

Instance Method Details

#as_tag(key) ⇒ Object



14
15
16
# File 'lib/chemtrail/intrinsic.rb', line 14

def as_tag(key)
  {"Key" => key, "Value" => self}
end

#to_referenceObject



8
9
10
11
12
# File 'lib/chemtrail/intrinsic.rb', line 8

def to_reference
  {
    "Ref" => id
  }
end