Class: Regis::Response::Sections

Inherits:
Base
  • Object
show all
Defined in:
lib/regis/responses/sections.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Sections

Returns a new instance of Sections.



9
10
11
# File 'lib/regis/responses/sections.rb', line 9

def initialize(json)                
    @sections = parse(json, Model::Section)
end

Instance Attribute Details

#sectionsObject (readonly)

Returns the value of attribute sections.



7
8
9
# File 'lib/regis/responses/sections.rb', line 7

def sections
  @sections
end