Class: Warb::Resources::Location

Inherits:
Resource
  • Object
show all
Defined in:
lib/warb/resources/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#add_document_header, #add_image_header, #add_text_header, #add_video_header, #build_template_named_parameter, #build_template_positional_parameter, #call, #initialize

Methods included from Validation

#blank?, #raw_value, #resolve, #validates

Constructor Details

This class inherits a constructor from Warb::Resources::Resource

Instance Attribute Details

#addressObject

Returns the value of attribute address.



6
7
8
# File 'lib/warb/resources/location.rb', line 6

def address
  @address
end

#latitudeObject

Returns the value of attribute latitude.



6
7
8
# File 'lib/warb/resources/location.rb', line 6

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



6
7
8
# File 'lib/warb/resources/location.rb', line 6

def longitude
  @longitude
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/warb/resources/location.rb', line 6

def name
  @name
end

Instance Method Details

#build_headerObject



8
9
10
# File 'lib/warb/resources/location.rb', line 8

def build_header
  common_location_params
end

#build_payloadObject



12
13
14
# File 'lib/warb/resources/location.rb', line 12

def build_payload
  common_location_params
end