Class: Bitbucket::Representation::Base
- Inherits:
-
Object
- Object
- Bitbucket::Representation::Base
- Defined in:
- lib/bitbucket/representation/base.rb
Direct Known Subclasses
Comment, Issue, PullRequest, Repo, User
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(raw) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(raw) ⇒ Base
Returns a new instance of Base.
10 11 12 |
# File 'lib/bitbucket/representation/base.rb', line 10 def initialize(raw) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
6 7 8 |
# File 'lib/bitbucket/representation/base.rb', line 6 def raw @raw end |
Class Method Details
.decorate(entries) ⇒ Object
14 15 16 |
# File 'lib/bitbucket/representation/base.rb', line 14 def self.decorate(entries) entries.map { |entry| new(entry) } end |