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
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 |
#names ⇒ Object
44 45 46 |
# File 'lib/sf_cli/sf/org/list_limits.rb', line 44 def names list.map(&:name) end |