Class: Deproll::Post
Instance Attribute Summary collapse
-
#gems ⇒ Object
readonly
Returns the value of attribute gems.
Instance Method Summary collapse
- #dependencies ⇒ Object
-
#initialize(gems) ⇒ Post
constructor
A new instance of Post.
- #options ⇒ Object
- #post ⇒ Object
Constructor Details
#initialize(gems) ⇒ Post
Returns a new instance of Post.
24 25 26 |
# File 'lib/deproll.rb', line 24 def initialize(gems) @gems = gems end |
Instance Attribute Details
#gems ⇒ Object (readonly)
Returns the value of attribute gems.
19 20 21 |
# File 'lib/deproll.rb', line 19 def gems @gems end |
Instance Method Details
#dependencies ⇒ Object
33 34 35 |
# File 'lib/deproll.rb', line 33 def dependencies gems.map(&:to_hash) end |
#options ⇒ Object
37 38 39 |
# File 'lib/deproll.rb', line 37 def { :dependencies => dependencies } end |
#post ⇒ Object
28 29 30 31 |
# File 'lib/deproll.rb', line 28 def post puts .inspect self.class.post('/projects/1/stages/1/dependencies', :query => ) # again hard coded end |