class Kentico::Kontent::Delivery::Language
Public Class Methods
new(source)
click to toggle source
Constructor.
-
Args:
-
source (
JSON
) The response from a REST request for a language
-
# File lib/delivery/models/language.rb, line 23 def initialize(source) @source = source end
Public Instance Methods
system()
click to toggle source
Parses the 'system' JSON object as a dynamic OpenStruct object.
-
Returns:
-
OpenStruct
The system properties of the language
-
# File lib/delivery/models/language.rb, line 11 def system @system unless @system.nil? @system = JSON.parse( JSON.generate(@source['system']), object_class: OpenStruct ) end