Class: Awsum::Ec2::Tag

Inherits:
Object show all
Defined in:
lib/awsum/ec2/tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ec2, resource_id, resource_type, key, value) ⇒ Tag

:nodoc:



8
9
10
11
12
13
14
# File 'lib/awsum/ec2/tag.rb', line 8

def initialize(ec2, resource_id, resource_type, key, value) #:nodoc:
  @ec2 = ec2
  @resource_id = resource_id
  @resource_type = resource_type
  @key = key
  @value = value
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



6
7
8
# File 'lib/awsum/ec2/tag.rb', line 6

def key
  @key
end

#resource_idObject (readonly)

Returns the value of attribute resource_id.



6
7
8
# File 'lib/awsum/ec2/tag.rb', line 6

def resource_id
  @resource_id
end

#resource_typeObject (readonly)

Returns the value of attribute resource_type.



6
7
8
# File 'lib/awsum/ec2/tag.rb', line 6

def resource_type
  @resource_type
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/awsum/ec2/tag.rb', line 6

def value
  @value
end