Class: Hubba::Github::Resource
- Inherits:
-
Object
- Object
- Hubba::Github::Resource
- Defined in:
- lib/hubba/github.rb
Overview
(nested) classes for “wrapped” response (parsed json body)
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ Resource
constructor
A new instance of Resource.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
10 11 12 |
# File 'lib/hubba/github.rb', line 10 def data @data end |