Class: FreckleApi::Project
- Defined in:
- lib/freckle_api/project.rb
Instance Method Summary collapse
-
#__entries ⇒ Object
entries is a method of hash, so we’re aliasing it for now.
- #entries ⇒ Object
- #reload!(api) ⇒ Object
Methods inherited from Model
Methods included from Coercions
Instance Method Details
#__entries ⇒ Object
entries is a method of hash, so we’re aliasing it for now. Hashie’s MethodWithIndirectAccess should take care of this, but it doesn’t seem to work in this case, so we do it manually.
15 |
# File 'lib/freckle_api/project.rb', line 15 alias_method :__entries, :entries |
#entries ⇒ Object
17 18 19 |
# File 'lib/freckle_api/project.rb', line 17 def entries self[:entries] end |
#reload!(api) ⇒ Object
21 22 23 |
# File 'lib/freckle_api/project.rb', line 21 def reload!(api) update api.project(FreckleApi.uri('projects', id)) end |