Sha256: d06a2ca1dcf7fdabead35f9965d5c17d2426dfafb20d99f7a027d316ae57eeda
Contents?: true
Size: 678 Bytes
Versions: 2
Compression:
Stored size: 678 Bytes
Contents
module Paymo class Project attr_accessor :id, :retired, :name, :description, :budget_hours, :price_per_hour, :client_id, :client_name, :users def initialize(result) @id = result['id'].to_i @retired = !!result['retired'] @name = result['name']['_content'] @description = result['description']['_content'] @budget_hours = result['budget_hours']['_content'].to_f @price_per_hour = result['price_per_hour']['_content'].to_f @client_id = result['client']['id'].to_i @client_name = result['client']['name'] @users = result['users'] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
paymo-0.0.2 | lib/paymo/models/project.rb |
paymo-0.0.1 | lib/paymo/models/project.rb |