This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form-group #{attribute.errrors? ? "has-error" : ""}"> | |
<label for="#{attribute.form_id}"> | |
<%= attribute.label_name %> | |
</label> | |
<%= country_select("user", "country", selected: attribute.value) %> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "easypost" | |
Easypost.api_key = "ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ" | |
EasyPost::Postage.buy( | |
:parcel => { | |
:weight => 1.1, | |
:height => 12, | |
:width => 14, | |
:length => 7 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import easypost | |
easypost.api_key = "ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ" | |
easypost.Postage.buy({ | |
"tracking": True, | |
"insurance": 135, | |
"weight": 1.1, | |
"height": 12, | |
"width": 14, | |
"length": 7, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "easypost" | |
Easypost.api_key = "ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ" | |
EasyPost::Postage.compare( | |
:parcel => { | |
:weight => 1.1, | |
:height => 12, | |
:width => 14, | |
:length => 7 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import easypost | |
easypost.api_key = "ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ" | |
easypost.Postage.compare({ | |
"tracking": True, | |
"insurance": 135, | |
"weight": 1.1, | |
"height": 12, | |
"width": 14, | |
"length": 7, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "easypost" | |
Easypost.api_key = "ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ" | |
Easypost::Address.verify( | |
:street1 => "101 California St", | |
:street2 => "Suite 1290", | |
:city => "San Francisco", | |
:state => "CA", | |
:zip => "94111" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import easypost | |
easypost.api_key = "ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ" | |
easypost.Address.verify({ | |
"street1": "101 California St", | |
"street2": "Suite 1290", | |
"city": "San Francisco", | |
"state": "CA", | |
"zip": "94111" | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EasyPost.setApiKey("ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ"); | |
// Create the address to test | |
EasyPost.Address address = new EasyPost.Address() | |
.setName("Dirk Diggler") | |
.setStreet1("300 Granelli Ave") | |
.setCity("Half Moon Bay") | |
.setState("CA") | |
.setZip("94019"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EasyPost.setApiKey("ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ"); | |
// Create the package | |
EasyPost.Package package = new EasyPost.Package() | |
.setWeigth(1.1) | |
.setHeight(12) | |
.setWidth(14) | |
.setLength(7); | |
// Create the to and from addresses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EasyPost.setApiKey("ek_0HbTD15HeT6RFTwCKoUQ7rrB2NzMZ"); | |
// Create the package | |
EasyPost.Package package = new EasyPost.Package() | |
.setWeigth(1.1) | |
.setHeight(12) | |
.setWidth(14) | |
.setLength(7); | |
// Create the to and from addresses |
OlderNewer