Sha256: 9d99cc3ac10c3e1f9e967ce58aaa685224873d7c4226fe6c16a77e1599ed9ada
Contents?: true
Size: 1.64 KB
Versions: 7
Compression:
Stored size: 1.64 KB
Contents
# Should only match name, business class Customer attr_accessor :customer_id, :customer_name, :company_name attr_accessor :street_address_1, :street_address_2 attr_accessor :city, :state, :postal_code attr_accessor :fred MY_CONSTANT = "TheOtherZachIsThePrimaryZach" def who_is_fred { :status => 'friend', :name => self.fred } end def my_condition puts "MAGIC" if true == false end def address_is_residence? self.company_name.nil? end def get_coords_for_address fake_api_call(city: city, state: state, postal_code: postal_code) end def neighborhood make_neighborhood_api_call(state: self.state, city: self.city, postal_code: self.postal_code) end def something_else fake_neighborhood_api_call(city: self.city, state: self.state) end def and_something_else_again fake_neighborhood_api_call(city: self.city) end def and_something_else_again_and_again fake_neighborhood_api_call(state: self.state) end def fake_neighborhood_api_call(args={}) "Probably River North" end def fake_api_call(args={}) [112.32, 124.11] end def business_card_api_call {name: customer_name, business: company_name} end def letterhead_api_call {name: customer_name, business: company_name} end def letterhead "#{customer_name}\r#{company_name}" end def address string = "" string << self.customer_name string << self.company_name if address_is_residence? string << self.street_address_1 string << self.street_address_2 if street_address_2.present? # string << "#{self.city}, #{self.state} #{self.postal_code}" string.join", " end end
Version data entries
7 entries across 7 versions & 1 rubygems