Class: SfCli::Sf::Sobject::Schema::Relations
- Inherits:
-
Object
- Object
- SfCli::Sf::Sobject::Schema::Relations
- Includes:
- Enumerable
- Defined in:
- lib/sf_cli/sf/sobject/schema.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
- #find(name) ⇒ Object
-
#initialize(relations) ⇒ Relations
constructor
A new instance of Relations.
- #names ⇒ Object
Constructor Details
Instance Method Details
#each(&block) ⇒ Object
230 231 232 |
# File 'lib/sf_cli/sf/sobject/schema.rb', line 230 def each(&block) relations.each(&block) end |
#find(name) ⇒ Object
238 239 240 |
# File 'lib/sf_cli/sf/sobject/schema.rb', line 238 def find(name) relations.find{|r| r.name == name.to_sym} end |
#names ⇒ Object
234 235 236 |
# File 'lib/sf_cli/sf/sobject/schema.rb', line 234 def names map(&:name).sort end |