Sha256: a670d6fd50866fd8769e9017457379336e64e24d8b4204a6688718816dcc4a34
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
require 'outreach-ruby/model' module Outreach class Sequence extend Outreach::Model attr_accessor :id, :name, :response def initialize(attrs) @id = attrs['id'] @name = attrs['name'] @response = attrs['response'] end def self.build_from_attributes_hash(data) result = {} result['id'] = data['id'] result['name'] = nested_hash_value( data, %w[attributes name] ) result['response'] = data new(result) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
outreach-ruby-0.0.2 | lib/outreach-ruby/sequence.rb |