Class: SfCli::Sf::Org::ListLimits::Limits
- Inherits:
-
Object
- Object
- SfCli::Sf::Org::ListLimits::Limits
- Includes:
- Enumerable
- Defined in:
- lib/sf_cli/sf/org/list_limits.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
- #find(name) ⇒ Object
-
#initialize(list) ⇒ Limits
constructor
A new instance of Limits.
- #names ⇒ Object
Constructor Details
Instance Method Details
#each(&block) ⇒ Object
37 38 39 |
# File 'lib/sf_cli/sf/org/list_limits.rb', line 37 def each(&block) list.each(&block) end |
#find(name) ⇒ Object
45 46 47 |
# File 'lib/sf_cli/sf/org/list_limits.rb', line 45 def find(name) list.find{|m| m.name == name.to_s} end |
#names ⇒ Object
41 42 43 |
# File 'lib/sf_cli/sf/org/list_limits.rb', line 41 def names list.map(&:name) end |