Class: Hubba::Github::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/hubba/github.rb

Overview

(nested) classes for “wrapped” response (parsed json body)

Direct Known Subclasses

Orgs, Repos

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Resource

Returns a new instance of Resource.



11
12
13
# File 'lib/hubba/github.rb', line 11

def initialize( data )
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



10
11
12
# File 'lib/hubba/github.rb', line 10

def data
  @data
end