Parent

Methods

Class/Module Index [+]

Quicksearch

Fog::Compute::Softlayer::Tags

Public Class Methods

new(attributes) click to toggle source
# File lib/fog/softlayer/models/compute/tags.rb, line 19
def initialize(attributes)
  self.filters ||= []
  super
end

Public Instance Methods

all(filters = filters) click to toggle source
# File lib/fog/softlayer/models/compute/tags.rb, line 24
def all(filters = filters)
  raise ArgumentError, "Filters argument for #{self.class.name}##{__method__} must be Array." unless filters.is_a?(Array)
  self.filters = filters
  data = service.describe_tags.body
  data.select! { |tag| filters.include?(tag) } unless filters.empty?
  load(data)
end
get(id) click to toggle source
# File lib/fog/softlayer/models/compute/tags.rb, line 32
def get(id)
  return nil if id.nil? || id == ""
  response = service.get_tag(id)
  data = response.body
  new.merge_attributes(data)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.