Class: Google::Storage::Data::BucketRuleApi

Inherits:
BucketRule
  • Object
show all
Defined in:
lib/google/storage/property/bucket_rule.rb

Overview

Manages a BucketRule nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from BucketRule

#action, #condition

Instance Method Summary collapse

Methods inherited from BucketRule

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ BucketRuleApi

Returns a new instance of BucketRuleApi.



87
88
89
90
# File 'lib/google/storage/property/bucket_rule.rb', line 87

def initialize(args)
  @action = Google::Storage::Property::BucketAction.api_munge(args['action'])
  @condition = Google::Storage::Property::BucketCondition.api_munge(args['condition'])
end