Class: Chemtrail::Intrinsic
- Inherits:
-
Object
- Object
- Chemtrail::Intrinsic
- Defined in:
- lib/chemtrail/intrinsic.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #as_tag(key) ⇒ Object
-
#initialize(id) ⇒ Intrinsic
constructor
A new instance of Intrinsic.
- #to_reference ⇒ Object
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
#id ⇒ Object (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_reference ⇒ Object
8 9 10 11 12 |
# File 'lib/chemtrail/intrinsic.rb', line 8 def to_reference { "Ref" => id } end |