Module: CartoJson::Shape::ClassMethods

Defined in:
lib/carto_json/shape.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#type(val = nil) ⇒ Object

Returns the value of attribute type.



9
10
11
# File 'lib/carto_json/shape.rb', line 9

def type
  @type
end

Instance Method Details

#parse(input) ⇒ Object



16
17
18
# File 'lib/carto_json/shape.rb', line 16

def parse(input)
  new input
end