Module: GovDelivery::TMS::Base

Included in:
CollectionResource::InstanceMethods
Defined in:
lib/govdelivery/tms/base.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client.



11
12
13
# File 'lib/govdelivery/tms/base.rb', line 11

def client
  @client
end

#errorsObject

Returns the value of attribute errors.



11
12
13
# File 'lib/govdelivery/tms/base.rb', line 11

def errors
  @errors
end

#hrefObject

Returns the value of attribute href.



11
12
13
# File 'lib/govdelivery/tms/base.rb', line 11

def href
  @href
end

#new_recordObject

Returns the value of attribute new_record.



11
12
13
# File 'lib/govdelivery/tms/base.rb', line 11

def new_record
  @new_record
end

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/govdelivery/tms/base.rb', line 3

def self.included(base)
  base.send(:include, GovDelivery::TMS::Util::HalLinkParser)
  base.extend(ClassMethods)
  base.send(:include, InstanceMethods)
  base.send(:include, GovDelivery::TMS::CoreExt)
  base.send(:extend, GovDelivery::TMS::CoreExt)
end