Class: Locomotive::Coal::Resources::Sections
- Defined in:
- lib/locomotive/coal/resources/sections.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #index ⇒ Object (also: #all)
Methods inherited from Base
#create, #destroy, #destroy_all, #initialize, #update, #update_with_locale
Methods included from Concerns::Request
#delete, #do_request, #get, #post, #put, #without_authentication
Constructor Details
This class inherits a constructor from Locomotive::Coal::Resources::Base
Instance Method Details
#index ⇒ Object Also known as: all
6 7 8 9 10 |
# File 'lib/locomotive/coal/resources/sections.rb', line 6 def index get(resources_name).map do |attributes| Resource.new(attributes) end end |