class Resource
Attributes
class_id[R]
description[R]
title[R]
Public Class Methods
new(json_str)
click to toggle source
Calls superclass method
Element::new
# File lib/Appolo/Models/secondary/resource.rb, line 10 def initialize(json_str) json_data = check_json_info json_str super(json_data[ModelUtils::ID], nil, json_data[ModelUtils::LINKS], @@type_of_links) @description = json_data[ModelUtils::DESCRIPTION] @class_id = json_data[ModelUtils::CLASS_ID] @title = json_data[ModelUtils::TITLE] end
Public Instance Methods
to_s()
click to toggle source
# File lib/Appolo/Models/secondary/resource.rb, line 23 def to_s "Resource : #{@class_id} - #{@title}" end