Module: GovDelivery::TMS::Base::InstanceMethods

Defined in:
lib/govdelivery/tms/base.rb

Instance Method Summary collapse

Instance Method Details

#href=(href) ⇒ Object



29
30
31
32
# File 'lib/govdelivery/tms/base.rb', line 29

def href=(href)
  self.new_record = false
  @href = href
end

#initialize(client, href) ⇒ Object



20
21
22
23
# File 'lib/govdelivery/tms/base.rb', line 20

def initialize(client, href)
  self.client = client
  self.href = href
end

#new_record?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/govdelivery/tms/base.rb', line 25

def new_record?
  !!new_record
end