Class: Rocksky::Resources::Base

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

Overview

Shared plumbing for resource classes. Each subclass calls #query or #procedure with the lexicon NSID; the HTTP instance does the actual transport work.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ Base

Returns a new instance of Base.



9
10
11
# File 'lib/rocksky/resources/base.rb', line 9

def initialize(http)
  @http = http
end

Instance Attribute Details

#httpObject (readonly)

Returns the value of attribute http.



7
8
9
# File 'lib/rocksky/resources/base.rb', line 7

def http
  @http
end