Class: Bitbucket::Representation::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/bitbucket/representation/base.rb

Direct Known Subclasses

Comment, Issue, PullRequest, Repo, User

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ Base

Returns a new instance of Base.


8
9
10
# File 'lib/bitbucket/representation/base.rb', line 8

def initialize(raw)
  @raw = raw
end

Instance Attribute Details

#rawObject (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


12
13
14
# File 'lib/bitbucket/representation/base.rb', line 12

def self.decorate(entries)
  entries.map { |entry| new(entry)}
end