Class: Ducksboard::Pull
- Inherits:
-
Object
- Object
- Ducksboard::Pull
- Includes:
- HTTParty
- Defined in:
- lib/ducksboard/pull.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id) ⇒ Pull
constructor
A new instance of Pull.
- #last ⇒ Object
Constructor Details
#initialize(id) ⇒ Pull
Returns a new instance of Pull.
9 10 11 |
# File 'lib/ducksboard/pull.rb', line 9 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/ducksboard/pull.rb', line 7 def id @id end |
Instance Method Details
#last ⇒ Object
13 14 15 16 17 |
# File 'lib/ducksboard/pull.rb', line 13 def last auth = {:username => ::Ducksboard.api_key, :password => "ducksboard-gem"} self.class.get("/#{id}/last", :basic_auth => auth) end |