Module: GCPT::JSONable::ClassMethods

Defined in:
lib/gcpt/utils/json_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



4
5
6
# File 'lib/gcpt/utils/json_model.rb', line 4

def attributes
  @attributes
end

Instance Method Details

#attr_accessor(*attrs) ⇒ Object



6
7
8
9
# File 'lib/gcpt/utils/json_model.rb', line 6

def attr_accessor *attrs
  (self.attributes ||= []).concat(attrs)
  super
end