class Ecoportal::API::V2::Registers::Register
Public Instance Methods
[](id)
click to toggle source
# File lib/ecoportal/api/v2/registers/register.rb, line 16 def [](id) templates_by_id[id] end
index_templates()
click to toggle source
# File lib/ecoportal/api/v2/registers/register.rb, line 24 def index_templates @templates_by_id = {} doc["templates"].each do |template_doc| template = template_class.new(template_doc) @templates_by_id[template.id] = template end end
templates()
click to toggle source
# File lib/ecoportal/api/v2/registers/register.rb, line 20 def templates templates_by_id.values end
templates_by_id()
click to toggle source
# File lib/ecoportal/api/v2/registers/register.rb, line 11 def templates_by_id @templates_by_id or index_templates @templates_by_id end