Class: Cumulus::Route53::Vpc
- Inherits:
-
Struct
- Object
- Struct
- Cumulus::Route53::Vpc
- Defined in:
- lib/route53/models/Vpc.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#region ⇒ Object
Returns the value of attribute region.
Instance Method Summary collapse
-
#<=>(other) ⇒ Object
Public: Implement <=> to allow sorting.
-
#to_hash ⇒ Object
Public: Produce a hash representing the VPC.
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/route53/models/Vpc.rb', line 3 def id @id end |
#region ⇒ Object
Returns the value of attribute region
3 4 5 |
# File 'lib/route53/models/Vpc.rb', line 3 def region @region end |
Instance Method Details
#<=>(other) ⇒ Object
Public: Implement <=> to allow sorting. Sorts by id and then region
5 6 7 8 9 10 11 |
# File 'lib/route53/models/Vpc.rb', line 5 def <=>(other) if self.id == other.id self.region <=> other.region else self.id <=> self.id end end |
#to_hash ⇒ Object
Public: Produce a hash representing the VPC
Returns the hash
16 17 18 19 20 21 |
# File 'lib/route53/models/Vpc.rb', line 16 def to_hash { "id" => id, "region" => region } end |