Class: Warb::Resources::Location
- Defined in:
- lib/warb/resources/location.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#name ⇒ Object
Returns the value of attribute name.
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
#address ⇒ Object
Returns the value of attribute address.
6 7 8 |
# File 'lib/warb/resources/location.rb', line 6 def address @address end |
#latitude ⇒ Object
Returns the value of attribute latitude.
6 7 8 |
# File 'lib/warb/resources/location.rb', line 6 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
6 7 8 |
# File 'lib/warb/resources/location.rb', line 6 def longitude @longitude end |
#name ⇒ Object
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_header ⇒ Object
8 9 10 |
# File 'lib/warb/resources/location.rb', line 8 def build_header common_location_params end |
#build_payload ⇒ Object
12 13 14 |
# File 'lib/warb/resources/location.rb', line 12 def build_payload common_location_params end |