Class: SfCli::Sf::Org::ListLimits::Limits

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/sf_cli/sf/org/list_limits.rb

Instance Method Summary collapse

Constructor Details

#initialize(list) ⇒ Limits

Returns a new instance of Limits.



36
37
38
# File 'lib/sf_cli/sf/org/list_limits.rb', line 36

def initialize(list)
  @list = list.map {|limit| Limit.new(**limit)}
end

Instance Method Details

#each(&block) ⇒ Object



40
41
42
# File 'lib/sf_cli/sf/org/list_limits.rb', line 40

def each(&block)
  list.each(&block)
end

#find(name) ⇒ Object



48
49
50
# File 'lib/sf_cli/sf/org/list_limits.rb', line 48

def find(name)
  list.find{|m| m.name == name.to_s}
end

#namesObject



44
45
46
# File 'lib/sf_cli/sf/org/list_limits.rb', line 44

def names
  list.map(&:name)
end