Class: TingYun::Http::AbstractRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/ting_yun/http/abstract_request.rb

Constant Summary collapse

ERROR_MESSAGE =
'Subclasses of TingYun::Http::AbstractRequest must implement a '.freeze

Instance Method Summary collapse

Instance Method Details

#[]Object

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/ting_yun/http/abstract_request.rb', line 8

def []
  raise NotImplementedError, ERROR_MESSAGE + ':[] method'
end

#[]=Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/ting_yun/http/abstract_request.rb', line 12

def []=
  raise NotImplementedError, ERROR_MESSAGE + ':[]= method'
end

#fromObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/ting_yun/http/abstract_request.rb', line 16

def from
  raise NotImplementedError, ERROR_MESSAGE + ':from method'
end