Class: DeviantArt::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/deviantart/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ Base

Returns a new instance of Base.



6
7
8
9
# File 'lib/deviantart/base.rb', line 6

def initialize(attrs)
  @attrs = attrs
  define_hash_attrs(self, @attrs, [])
end

Instance Attribute Details

#attrsObject (readonly)

Returns the value of attribute attrs.



3
4
5
# File 'lib/deviantart/base.rb', line 3

def attrs
  @attrs
end

Class Method Details

.point_to_class(point, klass) ⇒ Object



19
20
21
# File 'lib/deviantart/base.rb', line 19

def point_to_class(point, klass)
  self.points_class_mapping[point] = klass
end

.points_class_mappingObject



12
13
14
# File 'lib/deviantart/base.rb', line 12

def points_class_mapping
  @points_class_mapping ||= {}
end

.points_class_mapping=(v) ⇒ Object



15
16
17
# File 'lib/deviantart/base.rb', line 15

def points_class_mapping=(v)
  @points_class_mapping = v
end