Class: Fog::AWS::SES::Domains
- Inherits:
-
Collection
- Object
- Collection
- Fog::AWS::SES::Domains
- Defined in:
- lib/fog/aws/models/ses/domains.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
9 10 11 12 |
# File 'lib/fog/aws/models/ses/domains.rb', line 9 def all data = service.list_identities('Type'=> 'Domain').body['Identities'].map{ |name| { 'Domain' => name } } load(data) end |
#get(domain, with_inbox: false) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/fog/aws/models/ses/domains.rb', line 14 def get(domain, with_inbox: false) if (result = self.all.select{ |identity| identity.name == domain }.first) result.with_inbox = with_inbox end result end |