Class: YiffSpace::Images::Avatar::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/yiffspace/images/avatar/base.rb

Direct Known Subclasses

Discord, Gravatar

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, type) ⇒ Base

Returns a new instance of Base.



11
12
13
14
# File 'lib/yiffspace/images/avatar/base.rb', line 11

def initialize(id, type)
  @id   = id
  @type = type
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



9
10
11
# File 'lib/yiffspace/images/avatar/base.rb', line 9

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



9
10
11
# File 'lib/yiffspace/images/avatar/base.rb', line 9

def type
  @type
end

Class Method Details

.typeObject



7
# File 'lib/yiffspace/images/avatar/base.rb', line 7

def self.type = nil

Instance Method Details

#updateObject

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/yiffspace/images/avatar/base.rb', line 20

def update(*)
  raise(NotImplementedError)
end

#urlObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/yiffspace/images/avatar/base.rb', line 16

def url
  raise(NotImplementedError)
end