Sha256: 73bfcca1506c42681008c1117334ac29e03141e2246768945df5982509f1d897

Contents?: true

Size: 431 Bytes

Versions: 2

Compression:

Stored size: 431 Bytes

Contents

require 'active_resource'

class Story < ActiveResource::Base

  @@defaults = YAML.load_file('slurper_config.yml')
  self.site = "http://www.pivotaltracker.com/services/v3/projects/#{@@defaults['project_id']}"
  headers['X-TrackerToken'] = @@defaults.delete("token")
  attr_accessor :story_lines

  def initialize(attributes = {})
    @attributes     = {}
    @prefix_options = {}
    load(@@defaults.merge(attributes))
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slurper-0.4.1 lib/story.rb
slurper-0.4.0 lib/story.rb